HTML email field – lots of HTML stuff in DB – how to go to text

  • Participant
    Level: Enlightened
    Posts: 57
    Tony on #32616

    Hello –

    I am trying to use the data in my email field in an external mail merge system. But that field in BP contains all sorts of HTML (I guess as the field type suggests). I didn’t realize this would be the case.

    So, now I need to convert it to be the email alone and change the field type to text.

    Do you have any suggestions?

  • Keymaster
    (BuddyDev Team)
    Posts: 22526
    Brajesh Singh on #32626

    Hi Tony,
    Thank you for the question.

    The current BuddyPress implementation sends html emails.
    You can force it to send the plain text message by adding

    add_filter( 'bp_email_use_wp_mail', '__return_true' );


You must be logged in to reply to this topic.

This topic is: not resolved