wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



switch_theme › WordPress Action Hooks

Seit4.5.0
Veraltetn/v
do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Parameter: (3)
  • () new_name Name of the new theme.
    Erforderlich: Ja
  • () new_theme WP_Theme instance of the new theme.
    Erforderlich: Ja
  • () old_theme WP_Theme instance of the old theme.
    Erforderlich: Ja
Definiert in:
Codex:

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Quellcode

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