Created
June 3, 2015 15:47
-
-
Save jdhobbsuk/df80e8963cc9a99ed0f8 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