Filter: ep_thumbnail_image_size

apply_filters( 'ep_thumbnail_image_size', $image_size, $post ) → {array}

Filters the image size to use when indexing the post thumbnail.

Defaults to the woocommerce_thumbnail size if WooCommerce is in use. Otherwise the thumbnail size is used.

Parameters:
Name Type Description
$image_size string | Array.<int>

Image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

$post WP_Post

Post being indexed.

Since:
  • 4.0.0
Source:
Returns:

Image size to pass to wp_get_attachment_image_src().

Type
array