Showing Menu item for a specific user role
-
I copied the following code and placed it in the menu item Visibility field that I only want viewable to users who have “administrator” role.
in_array(‘administrator’, $GLOBALS[‘current_user’]->roles)
I refreshed the screen using F5 but the menu item still is not viewable to me.
What am I doing wrong?
Thanks in advance
Brenden
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Showing Menu item for a specific user role’ is closed to new replies.