WPML
Status
Waiting for author
Related plugin/theme
Follow-Up Emails

Overview of the issue

When using WooCommerce’s Follow-Up Emails plugin, instead of sending just one email, the plugin sends multiple duplicate emails – equal to as many languages you have installed on your site.

The issue happens because the plugin uses the get_posts() WordPress function. This picks up posts in all languages unless we define ‘suppress_filters’ => false.

Workaround

Please, make a full backup of your site before proceeding.


  1. Open the wp-content/plugins/woocommerce-follow-up-emails/includes/fue-functions.php file.

  2. Look for line 551.

  3. Replace the following snippet:
        function fue_get_emails( $type = 'any', $status = '', $filters = array() ) {
        	$args = array(
        		'nopaging'  => true,
        		'orderby'   => 'ID',
        		'order'     => 'DESC',		
        		'post_type' => 'follow_up_email',
        	);


  4. With:
        function fue_get_emails( $type = 'any', $status = '', $filters = array() ) {
        	$args = array(
        		'nopaging'  => true,
        		'orderby'   => 'ID',
        		'order'     => 'DESC',		
        		'post_type' => 'follow_up_email',
        		'suppress_filters' => false
        	);

All known issues →