Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove the 'tag' capability from posts
<?php
// Don't include the opening php tag
// Remove tags support from posts
function prefix_unregister_tags() {
unregister_taxonomy_for_object_type( 'post_tag', 'post' );
}
add_action('init', 'prefix_unregister_tags' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment