restrict custom user roles
-
Hi,
I made custom user roles with this code:
add_action('init', 'eye_add_roles'); function eye_add_roles() { add_role( 'nucinfo user', 'Nucinfo user', get_role( 'administrator' )->capabilities); add_role( 'daness user', 'Daness user', get_role( 'administrator' )->capabilities); }
But when I want to add restrictions with content control and check administrator and a custom role, only the administrator is assigned. I can assign all default roles, but not the custom ones, I can select them but they aren’t added.
What am I doing wrong?
Kind regards
Davy
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘restrict custom user roles’ is closed to new replies.