wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



switch_theme › WordPress Action Hooks

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

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Sorgenti

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