wc_after_switch_theme()
Attach functions that listen to theme switches.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wc_after_switch_theme( $old_name, $old_theme );
- $old_name(строка) (обязательный)
- Old theme name.
- $old_theme(\WP_Theme) (обязательный)
- Instance of the old theme.
Список изменений
С версии 9.7.0 | Введена. |
Код wc_after_switch_theme() wc after switch theme WC 9.8.1
function wc_after_switch_theme( $old_name, $old_theme ) { wc_set_hooked_blocks_version_on_theme_switch( $old_name, $old_theme ); wc_update_store_notice_visible_on_theme_switch( $old_name, $old_theme ); }