Change the Portfolio thumbnail size.
Parameters
- $var
(string | array)
Either a registered size keyword or size array.
Changelog
- Introduced in Jetpack 3.4.0
How to use this hook
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' );