woocommerce_coming_soon_exclude
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
woocommerce_coming_soon_exclude
woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php 164
if ( apply_filters( 'woocommerce_coming_soon_exclude', false ) ) {