Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter learntodesign

    (@learntodesign)

    This is the problematic function.

    function pmpro_wp_mail_content_type( $content_type ) {
    add_action(‘phpmailer_init’, ‘pmpro_send_html’);

    //change to html if not already
    if( $content_type == ‘text/plain’)
    {
    $content_type = ‘text/html’;
    }
    return $content_type;
    }
    add_filter(‘wp_mail_content_type’, ‘pmpro_wp_mail_content_type’);

    Is there anyway I can disable this from my functions.php so that I can continue to receive updates without having to remove this function everytime?

    Plugin Author Andrew Lima

    (@andrewza)

    Hi @learntodesign

    Thank you for getting in touch.

    You are able to use the remove_filter to disable this function for you.

    Here is documentation on the remove_filter method – https://codex.ww.wp.xz.cn/Function_Reference/remove_filter

    I hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Breaks my html email’ is closed to new replies.