Automattic\WooCommerce\Internal\ComingSoon
ComingSoonRequestHandler::enqueue_styles
Enqueues the coming soon banner styles.
Method of the class: ComingSoonRequestHandler{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ComingSoonRequestHandler = new ComingSoonRequestHandler(); $ComingSoonRequestHandler->enqueue_styles();
ComingSoonRequestHandler::enqueue_styles() ComingSoonRequestHandler::enqueue styles code WC 10.5.0
public function enqueue_styles() {
// Early exit if the user is not logged in as administrator / shop manager.
if ( ! current_user_can( 'manage_woocommerce' ) ) {
return;
}
// Early exit if LYS feature is disabled.
if ( ! Features::is_enabled( 'launch-your-store' ) ) {
return;
}
if ( $this->coming_soon_helper->is_site_live() ) {
return;
}
wp_enqueue_style(
'woocommerce-coming-soon',
WC()->plugin_url() . '/assets/css/coming-soon' . ( is_rtl() ? '-rtl' : '' ) . '.css',
array(),
Constants::get_constant( 'WC_VERSION' )
);
}