WordPress函数:wp_enqueue_classic_theme_styles

江河/ 03月17日/ WordPress/ 浏览 230

函数原型:


wp_enqueue_classic_theme_styles()


在前端的经典主题上加载经典主题样式。这是专门为按钮块的向后兼容性所必需的。


函数源码:


function wp_enqueue_classic_theme_styles() {
	if ( ! wp_theme_has_theme_json() ) {
		$suffix = wp_scripts_get_suffix();
		wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css" );
		wp_style_add_data( 'classic-theme-styles', 'path', ABSPATH . WPINC . "/css/classic-themes$suffix.css" );
		wp_enqueue_style( 'classic-theme-styles' );
	}
}


发表评论

暂无评论,抢个沙发...

客服 工单