Disable Disqus Comments from courses, question ,assignments ,qiuz

1.Add code given below in your wp-content/plugins/wplms-customizer/wplms-customizer.php file or in your child theme functions.php.

add_filter( 'comments_template' , 'wpb_block_disqus', 1 );
function wpb_block_disqus($file) {
if ( in_array(get_post_type(),array('unit','course','quiz','wplms-assignment','question')))
remove_filter('comments_template', 'dsq_comments_template');
return $file;
 
}