Skip to content

Instantly share code, notes, and snippets.

@tillkruss
Created April 1, 2013 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tillkruss/5283503 to your computer and use it in GitHub Desktop.
Save tillkruss/5283503 to your computer and use it in GitHub Desktop.
Remove "tags" from WP's admin UI.
<?php
add_action( 'admin_menu', function() {
remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' ); // Remove menu link under "Posts"
});
add_action( 'admin_menu', function() {
remove_meta_box( 'tagsdiv-post_tag', 'post', 'side'); // Remove metabox on add/edit post screen
});
add_filter( 'manage_posts_columns', function($columns) {
unset( $columns['tags'] ); // Remove "Tags" column in post listing
return $columns;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment