Support » Plugin: New User Approve » Formatting of Approval Email – need to hide tags

  • Hi, apologies for reposting – this is a continuation of the unresolved Email formatting issue here: https://wordpress.org/support/topic/formatting-approve-notification-message-fails/

    When a user gets an email approving their registration, the message has the <p> tags displaying in the email, and for the life of me I don’t know how to hide them or get the email to render the tags properly. This particular notification email is not formatting correctly and needs a fix.

    Does anyone please have a solution to this?
    Many Thanks,
    Chris

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

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

    Urs

    Hey there – 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' );

    My e-mails are now delivering without the p tags.

    You are a frigging genius. That fixed it, I think.

    Awesome – glad it worked! If it stops working for any reason, be sure to pass the word along.

    Well, I spoke too early. The DENIAL looks good now – but it took all of the paragraphs out of the APPROVAL email, and I don’t know how to fix it. Can you help?

    I figured it out. You need to add this in total:

    add_filter( ‘new_user_approve_approve_user_message_default’, ‘wpautop($br)’ );
    add_filter( ‘new_user_approve_deny_user_message_default’, ‘wpautop($br)’ );

    This fixes it for BOTH emails and it also preserves the breaks as it should. Now all I have to do is figure out how to get it to actually display the password reset link. Not even sure if I need it, the way I have it set up.

    OK cool! Good to know. Love it when the community shares answers. Thanks!

    you bet.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Formatting of Approval Email – need to hide tags’ is closed to new replies.