Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/theme.php | do_action | 3395 | /** * Fires on the first WP load after a theme switch if the old theme still exists. * * This action fires multiple times and the parameters differs * according to the context, if the old theme exists or not. * If the old theme is missing, the parameter will be the slug * of the old theme. * * @since 3.3.0 * * @param string $old_name Old theme name. * @param WP_Theme $old_theme WP_Theme instance of the old theme. */ |
wp-includes/theme.php | do_action | 3398 | /** * Fires on the first WP load after a theme switch if the old theme still exists. * * This action fires multiple times and the parameters differs * according to the context, if the old theme exists or not. * If the old theme is missing, the parameter will be the slug * of the old theme. * * @since 3.3.0 * * @param string $old_name Old theme name. * @param WP_Theme $old_theme WP_Theme instance of the old theme. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $old_name | Old theme name. |
WP_Theme | $old_theme | WP_Theme instance of the old theme. |
string | $old_name | Old theme name. |
WP_Theme | $old_theme | WP_Theme instance of the old theme. |