wp_enqueue_classic_theme_styles()
Loads classic theme styles on classic themes in the frontend.
This is used for backwards compatibility for Button and File blocks specifically.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_enqueue_classic_theme_styles();
Список изменений
С версии 6.1.0 | Введена. |
С версии 6.2.0 | Added File block styles. |
С версии 6.8.0 | Moved stylesheet registration outside of this function. |
Код wp_enqueue_classic_theme_styles() wp enqueue classic theme styles WP 6.8.2
function wp_enqueue_classic_theme_styles() { if ( ! wp_theme_has_theme_json() ) { wp_enqueue_style( 'classic-theme-styles' ); } }