-
-
Save cre8tivediva/fae03f925e8d166dad355f6c61ce260a to your computer and use it in GitHub Desktop.
Create New RSS Feed for MailChimp When Resizing Thumbnails for Bloglovin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
add_filter( 'send_images_rss_thumbnail_size', 'prefix_change_thumbnail_alternate_feed' ); | |
function prefix_change_thumbnail_alternate_feed( $image_size ) { | |
if ( is_feed( 'email' ) ) { | |
$image_size = 'mailchimp-rss'; | |
} | |
return $image_size; | |
} | |
add_image_size( 'mailchimp-rss', 300, 150, true ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment