Created
January 24, 2024 06:02
-
-
Save dknauss/f70c9d88b7ad7e1faa3a487203d4020f to your computer and use it in GitHub Desktop.
Unregister default (or any) WordPress taxonomies and remove them from navigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function nlm_unregister_taxonomies() | |
| { | |
| register_taxonomy('category', array(), array('show_in_nav_menus' => false) ); | |
| register_taxonomy('post_tag', array(), array('show_in_nav_menus' => false) ); | |
| } | |
| add_action('init', 'nlm_unregister_taxonomies'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment