Created
October 30, 2014 14:54
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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