WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about switch_theme

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/theme.php do_action 829 /**
* Fires after the theme is switched.
*
* @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.
*/

Hook Parameters

Parameter 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.