wpseek.com
A WordPress-centric search engine for devs and theme authors



switch_theme › WordPress Action Hooks

Since4.5.0
Deprecatedn/a
do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Parameters: (3)
  • () new_name Name of the new theme.
    Required: Yes
  • () new_theme WP_Theme instance of the new theme.
    Required: Yes
  • () old_theme WP_Theme instance of the old theme.
    Required: Yes
Defined at:
Codex:

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Source

do_action( 'switch_theme', $new_name, $new_theme, $old_theme );