Allows setting up custom Photon parameters to manipulate the image output in the Display Posts widget.
Parameters
- $args
array Array of Photon Parameters.
Changelog
- Introduced in Jetpack 3.6.0
How to use this hook
Notes
You can use this filter to customize the Photon parameters used for each image in the Display Posts widget on your site. In the example below, we’ll force all images to be 200*100px and black and white:
function jeherve_display_posts_custom_image_params() {
return array(
'resize' => '200,100',
'filter' => 'grayscale',
);
}
add_filter( 'jetpack_display_posts_widget_image_params', 'jeherve_display_posts_custom_image_params' );