Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save hellofromtonya/322c7385bc1a73273d33 to your computer and use it in GitHub Desktop.

Select an option

Save hellofromtonya/322c7385bc1a73273d33 to your computer and use it in GitHub Desktop.
Remove columns from WordPress Posts Listing (Admin area)
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