woocommerce_coming_soon_exclude хук-фильтрWC 9.1.0

Check if there is an exclusion.

Использование

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.
По умолчанию: false

Список изменений

С версии 9.1.0 Введена.

Где вызывается хук

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

Где используется хук в WooCommerce

Использование не найдено.