switch_theme – action

Fires after the theme is switched. 

Parameters

.
( 1.5.0 ) . .
Introduced
( 4.5.0 ) the `$old_theme` parameter. . . .
( string ) $new_name Name of the new theme. . . .
$new_theme
( WP_Theme ) WP_Theme instance of the new theme. . . .
$old_theme
( WP_Theme ) WP_Theme instance of the old theme. . . .
API Letters: ,

Implementers