filter

jetpack_portfolio_thumbnail_size

Change the Portfolio thumbnail size.

Parameters

$var
(string | array)

Either a registered size keyword or size array.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

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' );