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



after_switch_theme › Działania WordPress Hooks

Od3.3.0
Przestarzałyn/a
› do_action( 'after_switch_theme', $old_theme->get( 'Name' )
Parametry: (2)
  • () old_name Old theme name.
    Wymagane: Tak
  • () old_theme WP_Theme instance of the old theme.
    Wymagane: Tak
Zdefiniowane na:
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'}.




Źródło

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