WC_Shop_Customizer::add_frontend_scripts()publicWC 1.0

Frontend CSS styles.

Метод класса: WC_Shop_Customizer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Shop_Customizer = new WC_Shop_Customizer();
$WC_Shop_Customizer->add_frontend_scripts();

Код WC_Shop_Customizer::add_frontend_scripts() WC 8.7.0

public function add_frontend_scripts() {
	if ( ! is_customize_preview() || ! is_store_notice_showing() ) {
		return;
	}

	$css = '.woocommerce-store-notice, p.demo_store { display: block !important; }';
	wp_add_inline_style( 'customize-preview', $css );
}