woocommerce_should_load_brands_styles
Filter whether brands styles should be loaded.
Использование
add_filter( 'woocommerce_should_load_brands_styles', 'wp_kama_woocommerce_should_load_brands_styles_filter' );
/**
* Function for `woocommerce_should_load_brands_styles` filter-hook.
*
* @param bool $should_load Whether to load brands styles.
*
* @return bool
*/
function wp_kama_woocommerce_should_load_brands_styles_filter( $should_load ){
// filter...
return $should_load;
}
- $should_load(true|false)
- Whether to load brands styles.
Список изменений
| С версии 10.4.0 | Введена. |
Где вызывается хук
woocommerce_should_load_brands_styles
woocommerce/includes/class-wc-brands.php 261
return apply_filters( 'woocommerce_should_load_brands_styles', false );