Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to re-subscribe a permanently deleted contact

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles