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

Parameters

$var

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


Changelog

Since: Jetpack 3.4.0


Notes

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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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