do_action( 'switch_theme', string $new_name , WP_Theme $new_theme , WP_Theme $old_theme )
Fires after the theme is switched.
Description Description
Parameters Parameters
Source Source
File: wp-includes/theme.php
Changelog Changelog
Version | Description |
---|---|
4.5.0 | Introduced the $old_theme parameter. |
1.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
This hook is useful while deactivating a theme.
For example: