• Resolved KurzBaginski

    (@kurzbaginski)


    Hello,
    all Notification messages are getting formated (line breaks) correct. Only the Approve notification message has no line breaks. I have tried visual and text formatting (with <p></p> and <br />. And I am recieving them all in Thunderbird. Any idea?

    Best Regards

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

    We are having the same issue here. Did you manage to resolve it?

    Tessa

    Thread Starter KurzBaginski

    (@kurzbaginski)

    Hello,
    no, not yet.
    Best Regards

    Any update on this? I am experiencing the same…Thanks
    Example:
    <p>You have been approved to access TestSite</p>
    <p>Test</p>
    <p>When you registered, you should have received a registration email from Language Network containing a link to confirm your email address.</p>

    The response I got from the theme developer was to add this to the theme’s functions file:

    add_filter( 'new_user_approve_approve_user_message_default', 'wpautop', 30 );

    But I haven’t had a chance to try it out yet – let me know if it works!

    Hi Tessa, thank you for sharing!
    I just try to add that filter to the functions.php file as instructed but nothing happened. I still receive the confirmation email with all the p tags ??
    I also tried ‘remove_filter’ as suggested here:
    https://stackoverflow.com/questions/22710524/stop-wordpress-automatically-showing-p-p-tags , but nothing
    I also tried to filter ‘nua_default_approve_user_message’ with the message function generated by the theme, but that also didn’t work (most probably because my php skills are close to zero…)
    I don’t understand why this is the only email showing the tags…

    Ultimately I would prefer disable this email altogether and send an email manually…but how…

    Thanks for updating me – I don’t know the answer but suggest contacting the developer!

    Hi,

    We are having the same issue here. Did you manage to resolve it?

    Thread Starter KurzBaginski

    (@kurzbaginski)

    No, but to be honest I am out of the project.

    Hey guys – I found the solution that worked (for me, at least). Go into your functions.php file and put this:

    add_filter( 'new_user_approve_approve_user_message_default', 'wpautop' );

    It’s almost the same as what was suggested earlier, but I removed the 30 from the command. My e-mails are now delivering without the p tags.

    Thread Starter KurzBaginski

    (@kurzbaginski)

    Nice you shared it. Hopes it helps all. Can anybody confirm the solution? As mentioned I am out of the project.

    Looks like the original solution works (i.e. using priority 30). The first time I tried using the original solution, the p tags were still in the e-mail. But I think it might have been a caching issue. Once I cleared out the theme’s cache, the original solution began to work.

    The solution I posted earlier (without priority 30) worked at first, but then my e-mails began sending without any line breaks at all.

    So I guess I’d just suggest that people try clearing any caches once they install the code. Might be the reason it is / isn’t working.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Formatting Approve notification message fails’ is closed to new replies.