apply_filters ( 'jetpack_testimonial_thumbnail_size', string $var )

Change the thumbnail size for the Testimonial CPT.

Source file: modules/custom-post-types/testimonial.php

View in GitHub



(string) Either a registered size keyword or size array.


Since: Jetpack 3.4.0


You can use this filter to change the thumbnail size for posts displayed when using the Testimonial shortcode. You can use the filter to set any of the default sizes available with WordPress, or you can use a thumbnail size you’ve created yourself in your theme thanks to the `add_image_size` function. You can read more about this here.

In the example below, we’ll switch from the default size (thumbnail) to large thumbnails:

function jeherve_large_testimonial_thumbnails() {
    return 'large';
add_filter( 'jetpack_testimonial_thumbnail_size', 'jeherve_large_testimonial_thumbnails' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s