woocommerce_admin_should_load_features
Filter to determine if admin features should be loaded.
Usage
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.
Changelog
| Since 9.6.0 | Introduced. |
Where the hook is called
woocommerce_admin_should_load_features
woocommerce/src/Admin/Features/Features.php 401
return apply_filters( 'woocommerce_admin_should_load_features', $should_load );