apply_filters ( 'jetpack_portfolio_thumbnail_size', string $var )

Change the Portfolio thumbnail size.

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

View in GitHub

Parameters

$var

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


Changelog

Since: Jetpack 3.4.0


Notes

/**
 * Define a custom image size to be used in the Portfolio shortcode.
 *
 * @see https://en.support.wordpress.com/portfolios/portfolio-shortcode/
 *
 * You can use thumbnail, medium, large, full, or one of the custom image sizes defined in your theme with add_image_size
 * Or you can use an array of width and height (`array( 100, 100)`).
 *
 * @param string|array $size Either a registered size keyword or size array. Default is large.
 */
function jetpackcom_custom_portfolio_image_size( $size ) {
	return 'full';
}
add_filter( 'jetpack_portfolio_thumbnail_size', 'jetpackcom_custom_portfolio_image_size' );

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