How to remove Comments from the Pages Column

WordPress has evolved far beyond the blog platform that it originated from. Yet comments are still core feature that come with every install by default and are not used very often.

If you plan to not have comments on your site, your theme should not have the comments column in the page overview. Below is a quick function you can add to your functions.php file to remove the comment column from the overview for pages and posts.

//Removes Comments from Page Overview
add_filter( 'manage_pages_columns', 'sceniber_remove_comment_columns' );

//Removes Comments from Post Overview
add_filter( 'manage_posts_columns', 'sceniber_remove_comment_columns' );

function sceniber_remove_comment_columns( $columns ) {
  return $columns;