Automattic\WooCommerce\Internal\ComingSoon

ComingSoonHelper::is_store_coming_soon()publicWC 1.0

Returns true when only the store pages are in coming soon mode.

Method of the class: ComingSoonHelper{}

No Hooks.

Return

null. Nothing (null).

Usage

$ComingSoonHelper = new ComingSoonHelper();
$ComingSoonHelper->is_store_coming_soon(): bool;

ComingSoonHelper::is_store_coming_soon() code WC 9.3.3

public function is_store_coming_soon(): bool {
	return 'yes' === get_option( 'woocommerce_coming_soon' ) && 'yes' === get_option( 'woocommerce_store_pages_only' );
}