Last active
August 29, 2015 14:05
-
-
Save hellofromtonya/322c7385bc1a73273d33 to your computer and use it in GitHub Desktop.
Remove columns from WordPress Posts Listing (Admin area)
This file contains hidden or 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
| add_filter('manage_post_posts_columns' , 'lunarwp_remove_some_posts_listing_columns', 20, 1); | |
| /** | |
| * Remove columns from Posts Listing | |
| * | |
| * Uncomment the columns you want to remove | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @param array $columns Post Listing Columns | |
| * @return array Returns the amended columns array | |
| */ | |
| function lunarwp_remove_some_posts_listing_columns($columns) | |
| { | |
| //unset($columns['author']); | |
| //unset($columns['categories']); | |
| //unset($columns['comments']); | |
| //unset($columns['tags']); | |
| //unset($columns['date']); | |
| //unset($columns['wpseo-title']); | |
| unset($columns['wpseo-metadesc']); | |
| unset($columns['wpseo-focuskw']); | |
| return $columns; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment