do_action( 'after_switch_theme', string $old_name , WP_Theme $old_theme )
Fires on the first WP load after a theme switch if the old theme still exists.
Description Description
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.
Parameters Parameters
Source Source
File: wp-includes/theme.php
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Update the default medium image size when a theme is activated.