WC_Shop_Customizer::add_frontend_scripts()publicWC 1.0

Frontend CSS styles.

Method of the class: WC_Shop_Customizer{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Shop_Customizer::add_frontend_scripts() code WC 8.6.1

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 );
}