Skip to:
Content
Pages
Categories
Search
Top
Bottom

Solutions for html email text

Viewing 1 replies (of 1 total)

  • Bharat
    Participant

    @chavodbharat

    add_filter(‘bp_email_use_wp_mail’, ‘__return_true’);
    add_filter( ‘wp_mail_content_type’, ‘mathetis_use_html_wp_mail’ );
    function mathetis_use_html_wp_mail() {
    return ‘text/html’;
    }
    add_filter( ‘bp_email_get_content_plaintext’, ‘mathetis_get_bp_email_content_plaintext’, 10, 4 );
    function mathetis_get_bp_email_content_plaintext( $content = ”, $property = ‘content_plaintext’, $transform = ‘replace-tokens’, $bp_email ) {
    if ( ! did_action( ‘bp_send_email’ ) ) {
    return $content;
    }
    return $bp_email->get_template( ‘add-content’ );
    }

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