Show original image urls instead of CDN urls in RSS Feed

I am using smush Pro and I want to show actual image in rss feed not from cdn
but I am not able to find any such setting in plugin.

  • Adam
    • Support Gorilla

    Hi Susan

    I hope you’re well today and thank you for your question!

    This is currently not possible “out of the box” and there’s no settings that could be added as the CDN feature “doesn’t know” what page is currently served – it alters image URL on a more “basic” level, when WordPress requests the image.

    I suppose though there might be some workaround possible with some additional code but I’ll need help from our developers on this. I’ve already asked them for advice and am awaiting their response.

    Please note: they are dealing with a lot of complex tasks on daily basis so their response time might be a bit longer than ours here on forum. Please keep track of this ticket and we’ll update you here once we get to know more from them.

    Best regards,
    Adam

  • Panos
    • SLS

    Hi Susan !

    You can try adding the following snippet in a mu-plugin :

    add_action( 'template_redirect', function(){
    
    	if ( is_feed() ) {
    		add_filter( 'smush_skip_image_from_cdn', '__return_true' );
    		add_filter( 'smush_skip_background_image_from_cdn', '__return_true' );
    	}
    
    } );

    If you are not familiar with mu-plugins, you can read about them here:
    https://wordpress.org/support/article/must-use-plugins/

    Let us know if this works on your side too!

    Kind regards!