[Plugin: NextGEN Gallery] Roles Hardcode (with custom roles)
-
Hi ! I’m trying to let a customized user see the nextgen gallery menus.
This is the code that creates the user:
add_role('customer', 'Customer', array( 'read' => true (etc) ));
Then I tryed with this for Nextgen Gallery menus:
add_role('customer', 'Customer', array( 'general' => true, 'tinymce' => true, 'add_gallery' => true, 'ngg_manage_gallery' => true, 'manage_others' => true, 'manage_tags' => true, 'edit_album' => true, 'change_style' => true, 'change_options' => true ));
But it’s not working. I also tryed:
$role = get_role( 'customer' ); $role->add_cap( 'general' );
Can you help me ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: NextGEN Gallery] Roles Hardcode (with custom roles)’ is closed to new replies.