wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



switch_theme › Działania WordPress Hooks

Od4.5.0
Przestarzałyn/a
› do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Parametry: (3)
  • () new_name Name of the new theme.
    Wymagane: Tak
  • () new_theme WP_Theme instance of the new theme.
    Wymagane: Tak
  • () old_theme WP_Theme instance of the old theme.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Źródło

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