wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Remove post columns

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will allow you to remove columns from the posts page.

snippet :  PHPcopy
function remove_post_columns($defaults) {
  unset($defaults['comments']);
  return $defaults;
}
add_filter('manage_posts_columns', 'remove_post_columns');
source →

Did you like this post? If so please share it with your friends. Thanks!