• Resolved generosus

    (@generosus)


    Hi there,

    I would like to change the current email validation message used by your plugin.

    From: “This value should be a valid email.”
    To: “Email is invalid.”

    Details: https://prnt.sc/dboBTa7umCPx

    Can you kindly provide a code snippet that will allow me to accomplish this? Many other forms plugins allow me to change their validation messages via code snippets.

    Once provided, can you kindly update your documentation to reflect the above?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter generosus

    (@generosus)

    Temporary Solution: I changed the affected MailPoet file as noted here.

    Unfortunately, the change I made will revert back to its original configuration at your next plugin update. So, it would be great if you can either update your plugin file as noted — and/or — provide a code snippet (i.e., filter) for this purpose.

    Thank you!

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @generosus ,

    Thank you for reaching out to us.

    While there isn’t a built-in filter to modify this message directly, you can use the Loco Translate plugin to change it without modifying core plugin files. This method ensures that your changes persist even after plugin updates.Steps to Change the Validation Message with Loco Translate:

    1. Install and Activate Loco Translate
      • You can download it from here.
    2. Locate the MailPoet Plugin in Loco Translate
      • Navigate to Loco Translate > Plugins in your WordPress dashboard.
      • Find MailPoet in the list and click on it.
    3. Search for the Validation Message
      • In the translation editor, search for the text: This value should be a valid email.
    4. Replace the Text
      • Replace it with your desired message: Email is invalid.
      • Save the changes.

    Once completed, the validation message on your forms will update accordingly. This approach avoids altering the core plugin files, keeping your customizations intact after updates.

    I hope this is helpful.

    Thread Starter generosus

    (@generosus)

    Hi @geraltrivia,

    Thanks for your time and assistance. That’s a lot of work 🙂

    If necessary, I will definitely use your solution. Meanwhile, I’ll try to come up with a filter that will take care of my initial request.

    Cheers!

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello again @generosus ,

    You’re very welcome! I’m glad I could assist.

    Wishing you all the best with your efforts!

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

The topic ‘Need Code Snippet to Change Email Validation Message’ is closed to new replies.