• Resolved Retrofitter

    (@retrofitter)


    Hi

    There’s a potential issue, when the plugin is used together with WP Offload Media from Delicious Brains. Images may not display because they are offloaded to a delivery provider and are not really present in /wp-content/.

    This is normally fixed because WP Offload Media filters content and changes the local urls to the provider urls:

    https://deliciousbrains.com/wp-offload-media/doc/developer-guide/#local-to-provider

    But Newsletter Glue seems to fetch the content before this filter has had effect.

    Luckily the filter can be applied manually:
    https://deliciousbrains.com/wp-offload-media/doc/filtering-urls-in-custom-content/

    So you can do something like this:

    function dagens_newsletters_filter_post_local_to_provider($the_content) {
    	return apply_filters( 'as3cf_filter_post_local_to_provider', $the_content );
    }
    add_filter('newsletterglue_email_content','dagens_newsletters_filter_post_local_to_provider');

    But if you could add a fix to your compatibility file it would be a nice gesture.

Viewing 1 replies (of 1 total)
  • Plugin Contributor ahmedfouade

    (@ahmedfouade)

    Hi @retrofitter,

    I’m really sorry you’ve run into compatibility issues with Newsletter Glue.

    You’re right. We do not use the default WP content filters that’s why Offload Media filters will never run.

    This issue will be addressed in the next plugin update. In the meantime, you can use this filter (as you suggested) to add any custom filters to the content:

    $the_content = apply_filters( 'newsletterglue_email_content', $the_content, $post, $subject, $app );

    Best,
    Ahmed

Viewing 1 replies (of 1 total)
  • The topic ‘Incompatability with WP Offload Media’ is closed to new replies.