woocommerce_coming_soon_exclude filter-hookWC 9.1.0

Check if there is an exclusion.

Usage

add_filter( 'woocommerce_coming_soon_exclude', 'wp_kama_woocommerce_coming_soon_exclude_filter' );

/**
 * Function for `woocommerce_coming_soon_exclude` filter-hook.
 * 
 * @param bool $is_excluded If the request should be excluded from Coming soon mode.
 *
 * @return bool
 */
function wp_kama_woocommerce_coming_soon_exclude_filter( $is_excluded ){

	// filter...
	return $is_excluded;
}
$is_excluded(true|false)
If the request should be excluded from Coming soon mode.
Default: false

Changelog

Since 9.1.0 Introduced.

Where the hook is called

ComingSoonRequestHandler::should_show_coming_soon()
woocommerce_coming_soon_exclude
woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php 135
if ( apply_filters( 'woocommerce_coming_soon_exclude', false ) ) {

Where the hook is used in WooCommerce

Usage not found.