Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dboutote
Created October 30, 2014 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dboutote/9c17487594785b86555d to your computer and use it in GitHub Desktop.
Save dboutote/9c17487594785b86555d to your computer and use it in GitHub Desktop.
Remove Category column from the Posts list table in WordPress admin (edit.php)
<?php
/**
* Customize columns on list table
*
* @access public
* @since 1.0
*
* @param array $columns An array of indexes that appear on the posts lists table
* @return array $columns The filtered array of table columns
*/
function remove_admin_columns( $columns ) {
unset( $columns[ 'categories' ] );
return $columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment