Retrieves a role object by name.
Parameters
$rolestringrequired- Role name.
Source
public function get_role( $role ) {
return $this->role_objects[ $role ] ?? null;
}
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
Retrieves a role object by name.
$rolestringrequiredpublic function get_role( $role ) {
return $this->role_objects[ $role ] ?? null;
}
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.