wc_rejoiner_thumb_size
The WooCommerce Rejoiner wc rejoiner thumb size hook.
Description
Parameters (1)
- 0. $shop_thumbnail (string) =>
'shop_thumbnail'
- The shop thumbnail.
Usage
- To run the hook, copy the example below.
- $shop_thumbnail = apply_filters( 'wc_rejoiner_thumb_size', $shop_thumbnail );
- if ( !empty( $shop_thumbnail ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wc_rejoiner_thumb_size callback
- function filter_wc_rejoiner_thumb_size( $shop_thumbnail ) {
- // make filter magic happen here...
- return $shop_thumbnail;
- };
- // add the filter
- add_filter( 'wc_rejoiner_thumb_size', 'filter_wc_rejoiner_thumb_size', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wc_rejoiner_thumb_size', 'filter_wc_rejoiner_thumb_size', 10, 1 );
Defined (3)
The filter is defined in the following location(s).
- /includes/class-wc-rejoiner.php
- $thumb_size = apply_filters( 'wc_rejoiner_thumb_size', 'shop_thumbnail' );
- $thumb_size = apply_filters( 'wc_rejoiner_thumb_size', 'shop_thumbnail' );
- $thumb_size = apply_filters( 'wc_rejoiner_thumb_size', 'shop_thumbnail' );