Skip to content

Instantly share code, notes, and snippets.

@jonschr
Created October 21, 2015 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonschr/8f78dbb65ecfc88fa2dc to your computer and use it in GitHub Desktop.
Save jonschr/8f78dbb65ecfc88fa2dc to your computer and use it in GitHub Desktop.
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