Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable Tags Completely in WordPress
<?php
//* Do NOT include the opening php tag above. Copy the code shown below.
function unregister_tags() {
unregister_taxonomy_for_object_type( 'post_tag', 'post' );
}
add_action( 'init', 'unregister_tags' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.