• Resolved Marc1205

    (@marc1205)


    Hey there,

    How can I change the language of the messages, “Please check your email. You will soon receive an email with a login link.”

    All content is translated but I can′t find the piece where this messages get generated.

    Thanks,
    Marc

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello Marc,

    We can use a filter to modify that notification. Follow the steps below:

    1. Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

    2. Add the following code to the end of it:

    /*
     * Filter to modify the Passwordless Login Success message
     */
    
    add_filter('wpa_success_link_msg','wpac_modify_success_link_msg');
    function wpac_modify_success_link_msg ($content){
        return 'My custom text.';
    }

    3. Replace My custom text with your translation

    4. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

    Test it out and let me know if it works.

    Best regards,

    Thread Starter Marc1205

    (@marc1205)

    Thanks for your help, works fine!

    Awesome, thanks! Adding on to this, is there a way to add a hyperlink to the success text? I want to add my email using an anchor tag.

    Hello Jessica,

    Thank you for reaching out to us.

    In order to add a hyperlink you will need to modify “My custom text” with your own text. For example:

    My custom text. <a href='https://www.yourdomain.com'>Link</a> / <a href="mailto:[email protected]">Email</a>

    Let me know if this is what you are looking for.

    Best regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Language’ is closed to new replies.