wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



switch_theme › Les Actions WordPress

Depuis4.5.0
Dépréciéen/a
› do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Paramètres: (3)
  • () new_name Name of the new theme.
    Requis: Oui
  • () new_theme WP_Theme instance of the new theme.
    Requis: Oui
  • () old_theme WP_Theme instance of the old theme.
    Requis: Oui
Défini(e) dans:
Codex:

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Source

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