Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add filter for HTML templates email


  • prash009
    Participant

    @prash009

    I am not able the send the HTML email templates. Can anyone guide me how to change the plan/text email, to html email template.

    I found this line of code but where i have to do changes and how to edit the pluggable.php file .

    function set_content_type( $content_type ) {
    return ‘text/html’;
    }
    add_filter( ‘wp_mail_content_type’, ‘set_content_type’ );

    Thanks in Advance.

Viewing 1 replies (of 1 total)

  • prash009
    Participant

    @prash009

    \wp-content\plugins\buddypress\bp-core\bp-core-functions.php

    $email->get( ‘content_plaintext’, ‘replace-tokens’ )

    $email->get( ‘content_html’, ‘replace-tokens’ )

    now i changed the ‘content_plaintext’ to ‘content_html’ and it’s awesome it’s working

    But we are receiving mail in html format not in buddypress template I want to receive mail with buddypress templates

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar