Created
April 1, 2013 06:35
-
-
Save tillkruss/5283503 to your computer and use it in GitHub Desktop.
Remove "tags" from WP's admin UI.
This file contains 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
<?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