subcategory_archive_thumbnail_size

Show subcategory thumbnails.

Description

apply_filters( 'subcategory_archive_thumbnail_size', (string) $shop_catalog ); 

Parameters (1)

0. $shop_catalog (string) => 'shop_catalog'
The shop catalog.

Usage

To run the hook, copy the example below.
  1. $shop_catalog = apply_filters( 'subcategory_archive_thumbnail_size', $shop_catalog ); 
  2.  
  3. if ( !empty( $shop_catalog ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the subcategory_archive_thumbnail_size callback 
  2. function filter_subcategory_archive_thumbnail_size( $shop_catalog ) { 
  3. // make filter magic happen here... 
  4. return $shop_catalog
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'subcategory_archive_thumbnail_size', 'filter_subcategory_archive_thumbnail_size', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'subcategory_archive_thumbnail_size', 'filter_subcategory_archive_thumbnail_size', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/wc-template-functions.php  
  1. $small_thumbnail_size = apply_filters( 'subcategory_archive_thumbnail_size', 'shop_catalog' );