woocommerce_brand_thumbnail_size
Filter the brand's thumbnail size.
Usage
add_filter( 'woocommerce_brand_thumbnail_size', 'wp_kama_woocommerce_brand_thumbnail_size_filter' ); /** * Function for `woocommerce_brand_thumbnail_size` filter-hook. * * @param string $size Brand's thumbnail size. * * @return string */ function wp_kama_woocommerce_brand_thumbnail_size_filter( $size ){ // filter... return $size; }
- $size(string)
- Brand's thumbnail size.
Changelog
Since 9.4.0 | Introduced. |
Where the hook is called
woocommerce_brand_thumbnail_size
woocommerce/includes/wc-brands-functions.php 50
$size = apply_filters( 'woocommerce_brand_thumbnail_size', 'shop_catalog' );
woocommerce/templates/brands/widgets/brand-thumbnails-description.php 31
$thumbnail = wc_get_brand_thumbnail_url( $brand->term_id, apply_filters( 'woocommerce_brand_thumbnail_size', 'shop_catalog' ) );