Make WordPress Core

Opened 9 years ago

Last modified 5 years ago

#33975 new enhancement

Improve capabilities management when registering custom taxonomy

Reported by: slaffik's profile slaFFik Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description (last modified by johnbillion)

Currently we have such caps when using register_taxonomy() codex:

'manage_terms' - 'manage_categories'
'edit_terms' - 'manage_categories'
'delete_terms' - 'manage_categories'
'assign_terms' - 'edit_posts'

IMO, setting manage_terms to false block access to page (cheating message),
setting edit_terms to false displays this message: "You are not allowed to edit this item.", which is very odd. Editing means editing, So I should not be able to use Quick Edit and Edit links (they should be hidden).

Also, I propose to add a create_terms capability maping - for displaying the add term form and giving ability to create them, separately from editing/deleting.

Related: #22511

Change History (5)

#1 @johnbillion
9 years ago

  • Description modified (diff)
  • Keywords needs-patch needs-unit-tests added

#2 @danielbachhuber
9 years ago

  • Milestone changed from Awaiting Review to Future Release

+1 to a pass on improving capabilities for managing terms, and offering flexibility on par with register_post_type()

#5 @Biranit
8 years ago

I am very much in a need for create_terms capability for taxonomies. Is this something that is currently being considered?

Note: See TracTickets for help on using tickets.