Capability Taxonomy
-
Hi.
I have this code in my functions.phpadd_filter('cptui_pre_register_taxonomy','custom_cptui_tax', 10,3); function custom_cptui_tax($args, $tax_name, $taxonomy) { if( $tax_name == 'tamano' ) { $args['capabilities'] = array( 'manage_terms' => 'manage_tamano', 'edit_terms' => 'manage_tamano', 'delete_terms' => 'manage_tamano', 'assign_terms' => 'edit_posts' ); update_option('jjtest1', print_r($tax_name,true)); update_option('jjtest2', print_r($args,true)); } return $args; }
I verify that jjtest1 and jjtest2 have the correct value.
Then I installed “User Role Editor” plugin and “User Roles and Capabilities” plugin but the manage_tamano doesn’t appear.
How do I can validate that it made correctly?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Capability Taxonomy’ is closed to new replies.