Description
Fires after the theme is switched. See {@see 'after_switch_theme'}.
Occurrences
Filename | Line Number |
---|---|
wp-includes/theme.php | 878 |
Parameters
Type | Name | Description |
---|---|---|
string | $new_name | Name of the new theme. |
WP_Theme | $new_theme | WP_Theme instance of the new theme. |
WP_Theme | $old_theme | WP_Theme instance of the old theme. |
PHP Doc
/**
* Fires after the theme is switched.
*
* See {@see 'after_switch_theme'}.
*
* @since 1.5.0
* @since 4.5.0 Introduced the `$old_theme` parameter.
*
* @param string $new_name Name of the new theme.
* @param WP_Theme $new_theme WP_Theme instance of the new theme.
* @param WP_Theme $old_theme WP_Theme instance of the old theme.
*/