__construct()
__construct()
Class Constructor
get_privileges(string $slug) : array
Returns all the privileges (bool values) of a role slug.
The privilege numbers are converted into bool values of the four main actions (view, add, edit, delete). By checking each value you can know if the user is able to perform this action.
string | $slug | The role slug. |
Returns the privilege value.