• Resolved michaeltaube

    (@michaeltaube)


    Hello,
    I’ve noticed that if I manually delete a contact from a Mailchimp list and I try to re-subscribe him by using Easy Forms on my website, it shows the following error message:

    (email address) was permanently deleted and cannot be re-imported. The contact must re-subscribe to get back on the list.

    I saw that there was already a topic like this and they member who started was able to solve the problem with this reply by @yikesitskevin

    You can edit MailChimp’s default responses by using a filter like this:

    add_filter( 'yikes-mailchimp-general-error-response', 'yikes_mailchimp_customize_email_deleted_message', 10, 3 );
    
    function yikes_mailchimp_customize_email_deleted_message( $original_response_text, $user_defined_response_text, $form_id ) {
    
    	if ( strpos( $original_response_text, 'permanently deleted' ) !== false ) {
    		return 'This is the custom message to return when users are permanently deleted';
    	}
    
    	return $original_response_text;
    }
    

    I am not familiar with adding filter functions, so if one you could guide me through the process of adding these to the plugin, I would be very grateful.

    Thank you in advacne.

    Kind Regards,
    Michael

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

    (@yikesitskevin)

    Hi Michael,

    (I’m basically copying and pasting this answer from the answer I gave in the linked thread).

    This filter has nothing to do with re-subscribing a deleted email to a list. This filter only changes the message shown to users who try to re-subscribe but were permanently deleted.

    You can’t use the API to re-subscribe yourself. However, as I said in the other thread, a hosted form, which is built and controlled by MailChimp, works differently and has different rules.

    I believe you can use a hosted MailChimp form to re-subscribe yourself.

    Cheers,
    Kevin.

Viewing 1 replies (of 1 total)
  • The topic ‘How to re-subscribe a permanently deleted contact’ is closed to new replies.