Disable Wplms Html Emails

This will only work with vibe course module version 1.9.8.4 or more .

Please add this code in your child theme functions.php or in your wp-content/plugins/wplms-customizer/wplms-customizer.php file :

add_filter('bp_course_disable_html_emails','disable_html_emails');
function disable_html_emails($x){
  return 0;
}
add_action('init','disablehtmlemails',999);
function disablehtmlemails(){
  if(class_exists('bp_course_activation')){
    $bp_course_activation = bp_course_activation::init();
remove_filter('wp_mail_content_type',array($bp_course_activation,'set_html_content_type'));
  }

}

 

Leave a Reply

Your email address will not be published. Required fields are marked *