Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    In order to modify the email notification we will need to use some custom code:

    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 email notification sent to the user by Passwordless Login add-on
     */
    
    add_filter ( 'wpa_email_message', 'wppbc_change_email_notifcation_paswordless_login', 20, 2 );
    function wppbc_change_email_notifcation_paswordless_login($content, $url){
        $blog_name = get_bloginfo( 'name' );
        $message = sprintf("Login to $blog_name by visiting this url: $url - My Custom text" , $url );
        return $message;
    }

    3. Replace My custom text with your custom text

    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,

    Thanks, this is very helpful! Is there a way to change the css of the email?

    Hello Jessica,

    Thank you for reaching out to us.

    Can you give me more details regarding the styling? For example you can make “My Custom text” bold like so:

    <strong>My Custom text</strong>

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling email’ is closed to new replies.