Taxonomy Capabilities
-
Hi,
Great plugin, for me it works flawlessly, except for one small gotcha, perhaps you could help.
As an admin, I CAN create, edit and delete posts created with CPT_UI.
As an admin, I CAN assign taxonomies created with CPT_UI to posts created with CPT_UI.
As an editor I CAN create, edit and delete posts created with CPT_UI.
As an editor, I CANNOT assign taxonomies created with CPT_UI to posts created with CPT_UI.I’m using user role editor, and I checked if there was any permissions for the taxonomy that I could assign to a role, but could not see any.
I presume these need to be registered manually? If so how does one go about doing it?
I’m including an export of my taxonomy for reference. However all of my CPT configuration is currently in the UI and not in functions.php etc
function cptui_register_my_taxes() { /** * Taxonomy: Teams. */ $labels = array( "name" => __( 'Teams', 'understrap-child' ), "singular_name" => __( 'Team', 'understrap-child' ), ); $args = array( "label" => __( 'Teams', 'understrap-child' ), "labels" => $labels, "public" => true, "hierarchical" => false, "label" => "Teams", "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array( 'slug' => 'team', 'with_front' => true, ), "show_admin_column" => false, "show_in_rest" => false, "rest_base" => "", "show_in_quick_edit" => false, ); register_taxonomy( "team", array( "careers" ), $args ); } add_action( 'init', 'cptui_register_my_taxes' );Thanks!
The topic ‘Taxonomy Capabilities’ is closed to new replies.