How to disable post tag in WordPress

Last updated on October 21, 2022 A Goodman Loading... 2 comments

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:

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.

Subscribe
Notify of
guest
2 Comments
Inline Feedbacks
View all comments
Tom
Tom
8 months ago

It would be interessting to have this depending on the role

NiallFlynn.com
NiallFlynn.com
1 month ago
Reply to  Tom

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

Related Articles