How to disable post tag in WordPress

Last updated on October 21, 2022 A Goodman Loading... One comment

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
1 Comment
Inline Feedbacks
View all comments
Tom
Tom
4 months ago

It would be interessting to have this depending on the role

Related Articles