[Resolved] Is the GPP Featured Image Resizer filterable?

Home Forums Support [Resolved] Is the GPP Featured Image Resizer filterable?

Home Forums Support Is the GPP Featured Image Resizer filterable?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1326836
    George

    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.

    #1326839
    Tom
    Lead Developer
    Lead Developer

    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;
    } );
    #1326862
    George

    Feels good when it works! Thanks Tom!

    #1327586
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.