admin管理员组

文章数量:1122846

Using plugins like "Members" or "Capability Manager", I don't see any such manage_tags capability. Shouldn't there be one like there is manage_categories?

EDIT: I think I figured it out. manage_terms is for all taxonomies. There isn't one specifically for tags, but I could create one if I so desire. This could allow me to set up a role that can edit only categories, but not tags, and vice versa.

NOTE: I got rated down. If you rate me down, please state why. Thanks.

Using plugins like "Members" or "Capability Manager", I don't see any such manage_tags capability. Shouldn't there be one like there is manage_categories?

EDIT: I think I figured it out. manage_terms is for all taxonomies. There isn't one specifically for tags, but I could create one if I so desire. This could allow me to set up a role that can edit only categories, but not tags, and vice versa.

NOTE: I got rated down. If you rate me down, please state why. Thanks.

Share Improve this question edited Jun 29, 2011 at 7:41 trusktr asked Jun 29, 2011 at 2:49 trusktrtrusktr 7813 gold badges10 silver badges18 bronze badges 4
  • 1 Whoever rated me down, why? It doesn't help to get rated down without an explanation. – trusktr Commented Jun 29, 2011 at 7:36
  • I figured it out. manage_terms applies to all taxonomies. I can make one specifically for tags if I like. Whoever rated me down should have said that... – trusktr Commented Jun 29, 2011 at 7:37
  • Sorry you got voted down, makes no sense. Codex doesn't have answers and the output of Capability Manager, at least, is extremely confusing on this subject (from what I can tell "Manage Categories" controls everything add/edit/delete for both categories and tags, which is insane) – jerclarke Commented Feb 12, 2018 at 18:52
  • @jerclarke Are you sure that manage_categories will also give you the capability to manage tags? – 5ervant - techintel.github.io Commented May 17, 2018 at 19:18
Add a comment  | 

2 Answers 2

Reset to default 1

You need to check out codex page regarding roles and caps to see the list of default capabilites that exist, you can always create your own custom capabilites

If you reference the create_initial_taxonomies() function in wp-includes/taxonomy.php in the Wordpress core, the post tag taxonomy is registered with the following capabilities:

  • manage_post_tags
  • edit_post_tags
  • delete_post_tags
  • assign_post_tags

本文标签: capabilitiesHow come I see a managecategories capability but not a managetags capability for any users