How to disable post tag in WordPress
( 7 Articles)

You can easily disable post tags in WordPress by adding the code below into your functions.php:
add_action('init', function(){
register_taxonomy('post_tag', []);
});
From now on, you will no longer see the Tags submenu inside the Posts menu on the left sidebar. You will also see the Tags field when adding a new or editing an existing post.
Further reading:
- WordPress: Passing Params to get_template_part()
- Using Docker Compose to speed up WordPress development
- How to insert 4K images in your WordPress posts
- WordPress: Show related posts by tags
I have made every effort to ensure that every piece of code in this article works properly, but I may have made some mistakes or omissions. If so, please send me an email: [email protected] or leave a comment to report errors.
It would be interessting to have this depending on the role