Customize profile update validation messaging - YIKES WordPress Plugins

Knowledge Base

Customize profile update validation messaging

Article Last Updated: July 22, 2020

In version 6.0.4.1, we added email validation for users who update their Mailchimp profiles via a form. The user clicks to send themselves an email with a link to update their profile. This prevents people from updating other users’ profiles without permission.

The snippet below allows you to change the messaging shown. This is handy for translating forms.

function alter_double_optin_text( $text, $update_link ) {
    $update_link = str_replace( 'click to send yourself an update link', 'Klicken Sie sich ein Update Link zu senden.', $update_link ); 
    return 'So aktualisieren Sie Ihre Mailchimp Profil, bitte ' . $update_link; 
}
add_filter( 'yikes-easy-mailchimp-update-existing-subscriber-text', 'alter_double_optin_text', 10, 2 );

Result:

message

Stay updated on YIKES Plugins