Is there a way to create admin-only taxonomies in wordpress?

I have some things I'd like to tag with private, admin-only terms (for various reasons.) Is there a way to do this?

EDIT: Use case: I don't want the taxonomy or their terms getting their own url. i.e site.com/taxonomy/term

I also don't want the terms searchable on the frontend

  • What purpose would this serve? Filtering out specific terms for admins or non-admins doesn't sound performant or easy, but only registering a custom taxonomy if the user has admin privileges is trivial – Tom J Nowell Feb 18 '16 at 14:05
  • I'd like to mostly keep them from getting their own url structure. – friendlyfire Feb 18 '16 at 15:09

I believe when registering the taxonomy: setting public to false and show_in_menu, show_in_nav_menus, show_ui all to true would solve what I THINK is your request, without knowing any further what your use case is.

  • i read this as well. However, I'm looking to remove the taxonomy's from the url structure of wp. Just updated my question. Sorry for the lack of clarity. – friendlyfire Feb 18 '16 at 15:04
  • You were right and my slug suppressing request was in the docs: codex.wordpress.org/Function_Reference/… – friendlyfire Feb 18 '16 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.