Automattic\WooCommerce\Internal\ComingSoon
ComingSoonHelper::is_url_coming_soon()
Early exit if coming soon mode not active.
Method of the class: ComingSoonHelper{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ComingSoonHelper = new ComingSoonHelper(); $ComingSoonHelper->if ( $this->is_site_live() );
- $this->is_site_live() (required)
- -
ComingSoonHelper::is_url_coming_soon() ComingSoonHelper::is url coming soon code WC 9.8.2
if ( $this->is_site_live() ) { return false; } if ( $this->is_site_coming_soon() ) { return true; } // Check the current page is a store page when in "store coming soon" mode. if ( $this->is_store_coming_soon() && WCAdminHelper::is_current_page_store_page() ) { return true; } // Default to false. return false; } }