Un motore di ricerca WordPress per sviluppatori e autori di temi



switch_theme ›

Da4.5.0
Deprecaton/a
do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Parametri: (3)
  • (string) $new_name Name of the new theme.
    Richiesto:
  • (WP_Theme) $new_theme WP_Theme instance of the new theme.
    Richiesto:
  • (WP_Theme) $old_theme WP_Theme instance of the old theme.
    Richiesto:
Definito a:
Codex:

Fires after the theme is switched.





Sorgenti

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