How to disable post tag in WordPress
( 17 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
I agree, tags are handy sometimes, but most of the time create huge bloat and destroy a sites SEO. I can see why first time bloggers use them but they are the worst part of WP imo from a technical SEO point of view. Second only to attachment URLs