woocommerce_admin_should_load_features
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 | Введена. |
Где вызывается хук
woocommerce_admin_should_load_features
woocommerce/src/Admin/Features/Features.php 401
return apply_filters( 'woocommerce_admin_should_load_features', $should_load );