wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



switch_theme › Hooks de Ações WordPress

Desde4.5.0
Obsoleton/a
› do_action( 'switch_theme', $new_name, $new_theme, $old_theme )
Parâmetros: (3)
  • () new_name Name of the new theme.
    Required: Yes
  • () new_theme WP_Theme instance of the new theme.
    Required: Yes
  • () old_theme WP_Theme instance of the old theme.
    Required: Yes
Definido em:
Codex:

Fires after the theme is switched.

See {@see 'after_switch_theme'}.




Fonte

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