woocommerce_should_load_brands_styles filter-hookWC 10.4.0

Filter whether brands styles should be loaded.

Usage

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.

Changelog

Since 10.4.0 Introduced.

Where the hook is called

WC_Brands::should_load_brands_styles()
woocommerce_should_load_brands_styles
woocommerce/includes/class-wc-brands.php 296
return apply_filters( 'woocommerce_should_load_brands_styles', false );

Where the hook is used in WooCommerce

Usage not found.