-
-
Save dgoze/1c08eb54bf36590ffcc59b780c3f135c to your computer and use it in GitHub Desktop.
Remove columns from admin list
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
// Remove columns from Page section | |
// ------------------------------------------------------------- | |
function my_pages_columns( $defaults ) { | |
unset( $defaults['comments'] ); | |
unset( $defaults['author'] ); | |
unset( $defaults['tags'] ); | |
unset( $defaults['date'] ); | |
// WordPress SEO | |
unset( $defaults['wpseo-title'] ); | |
unset( $defaults['wpseo-metadesc'] ); | |
unset( $defaults['wpseo-focuskw'] ); | |
unset( $defaults['wpseo-score'] ); | |
return $defaults; | |
} | |
add_filter( 'manage_edit-{POST_TYPE}_columns', 'my_pages_columns' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment