WC_Shop_Customizer::add_frontend_scripts()
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 Shop Customizer::add frontend scripts WC 9.8.2
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 ); }