subcategory_archive_thumbnail_size

subcategory_archive_thumbnail_size

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('subcategory_archive_thumbnail_size') is found 1 times:

  • /includes/wc-template-functions.php line 2701
    	 *
    	 * @param mixed $category Category.
    	 */
    	function woocommerce_subcategory_thumbnail( $category ) {
    		$small_thumbnail_size = apply_filters( 'subcategory_archive_thumbnail_size', 'woocommerce_thumbnail' );
    		$dimensions           = wc_get_image_size( $small_thumbnail_size );
    		$thumbnail_id         = get_term_meta( $category->term_id, 'thumbnail_id', true );
    
    		if ( $thumbnail_id ) {
    			$image        = wp_get_attachment_image_src( $thumbnail_id, $small_thumbnail_size );
    			$image        = $image[0];