Please add the given code in wplms-customizer.php file in wplms customizer plugin :
add_action( 'pre_get_comments', 'wplms_remove_comments_admin_panel' ); function wplms_remove_comments_admin_panel( $query ){ if(is_admin()){ $page=get_current_screen(); if( $page->base =='edit-comments') $query->query_vars['post_type'] = array('post','unit','course','wplms-assignment','product'); } return $query; }
Note : if you have any other custom post types then please add that post type in the array in the code like this :
change this line to add new custom post type :
$query->query_vars['post_type'] = array('post','unit','course','wplms-assignment','product','pages');
In above line I added “pages” .