Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save melaniedunford/8a23ce5028a8a5b5fc607cf748a91dee to your computer and use it in GitHub Desktop.
Save melaniedunford/8a23ce5028a8a5b5fc607cf748a91dee to your computer and use it in GitHub Desktop.
remove WordPress SEO columns from admin post tables
<?php
function rkv_remove_columns( $columns ) {
// remove the Yoast SEO columns
unset( $columns['wpseo-score'] );
unset( $columns['wpseo-title'] );
unset( $columns['wpseo-metadesc'] );
unset( $columns['wpseo-focuskw'] );
return $columns;
}
add_filter ( 'manage_edit-post_columns', 'rkv_remove_columns' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment