Disallow tags in WordPress

I don’t use tags in WordPress, how can I disable this functionality?

Add this code to your plugin:

// Remove submenu
add_action('admin_menu', 'wpster_remove_sub_menus');
function wpster_remove_sub_menus() {
remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=post_tag');
// Remove tags from page and post
add_action('init', 'wpster_remove_tags');
function wpster_remove_tags(){
register_taxonomy('post_tag', array());

Submit a Comment

Your email address will not be published. Required fields are marked *