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



after_switch_theme › Les Actions WordPress

Depuis3.3.0
Dépréciéen/a
› do_action( 'after_switch_theme', $old_theme->get( 'Name' )
Paramètres: (2)
  • () old_name Old theme name.
    Requis: Oui
  • () old_theme WP_Theme instance of the old theme.
    Requis: Oui
Défini(e) dans:
Codex:

Fires on the next WP load after the theme has been switched.

The parameters differ according to whether the old theme exists or not. If the old theme is missing, the old name will instead be the slug of the old theme. See {@see 'switch_theme'}.




Source

do_action( 'after_switch_theme', $old_theme->get( 'Name' ), $old_theme );