Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author eventualo

    (@eventualo)

    Hi, for now you could do it writing some php code.

    I wrote this, I have not tested yet but it should work (I hope):

    function my_easymail_remove_unsubscribed_from_queue( $recipient ) {
    	global $wpdb;
    
    	if ( alo_em_check_email_in_unsubscribed( $recipient->email ) && !empty( $recipient->ID ) ) {
    		$wpdb->update(
    			"{$wpdb->prefix}easymail_recipients",
    			array( 'result' => '-1' ),
    			array( 'ID' => $recipient->ID )
    		);
    
    		return false;
    	} else {
    		return $recipient;
    	}
    }
    
    add_filter( 'alo_easymail_recipient_in_queue', 'my_easymail_remove_unsubscribed_from_queue' );

    Let us know your feedback.

    Thread Starter perrineco

    (@perrineco)

    Hi

    Sorry fotr the late answer !
    I think it is working ! thanksç

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘immediate unsubscription’ is closed to new replies.