woocommerce_admin_should_load_features хук-фильтрWC 9.6.0

Filter to determine if admin features should be loaded.

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

add_filter( 'woocommerce_admin_should_load_features', 'wp_kama_woocommerce_admin_should_load_features_filter' );

/**
 * Function for `woocommerce_admin_should_load_features` filter-hook.
 * 
 * @param boolean $should_load Whether admin features should be loaded. It defaults to true when the current request is in an admin context.
 *
 * @return boolean
 */
function wp_kama_woocommerce_admin_should_load_features_filter( $should_load ){

	// filter...
	return $should_load;
}
$should_load(true|false)
Whether admin features should be loaded. It defaults to true when the current request is in an admin context.

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

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

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

Features::should_load_features()
woocommerce_admin_should_load_features
woocommerce/src/Admin/Features/Features.php 396
return apply_filters( 'woocommerce_admin_should_load_features', $should_load );

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

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