WordPress at Your Fingertips
function is not described

WC_Shop_Customizer::add_frontend_scripts() public WC 1.0

Frontend CSS styles.

{} It's a method of the class: WC_Shop_Customizer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shop_Customizer::add_frontend_scripts() WC 5.7.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 );
}