Determines whether a role name is currently in the list of available roles.
Parameters
$role
stringrequired- Role name to look up.
Source
public function is_role( $role ) {
return isset( $this->role_names[ $role ] );
}
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.