How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
Add following code in your theme’s functions.php. // To add extra column in column headers add_filter(‘manage_posts_columns’, ‘bs_event_table_head’); function bs_event_table_head( $defaults ) { $defaults[‘pending_comments’] = ‘Pending Comments’; return $defaults; } // To add data in column for each post. add_action( ‘manage_posts_custom_column’, ‘bs_event_table_content’, 10, 2 ); function bs_event_table_content( $column_name, $post_id ) { if ($column_name == ‘pending_comments’) { … Read more