Archived topic
Is the GPP Featured Image Resizer filterable?
3 replies · Started by George on June 13, 2020
Viewing posts 1–4 of 4
I was just wondering whether the new GPP Featured Image Resizer was filterable? I have another archive that I want to exclude the Width and Height featured image values that I have set up in the Customizer for the Blog Layout.
Hey George,
For sure, this is the filter: generate_blog_image_attributes
For example:
add_filter( 'generate_blog_image_attributes', function( $atts ) {
$atts['width'] = 200;
$atts['height'] = 200;
$atts['crop'] = true;
return $atts;
} );
Feels good when it works! Thanks Tom!
No problem :)
This archived topic is closed to new replies.