WP_Roles::is_role( string $role )
Whether role name is currently in the list of available roles.
Parameters
- $role
-
(Required) Role name to look up.
Return
(bool)
Source
File: wp-includes/class-wp-roles.php
public function is_role( $role ) {
return isset( $this->role_names[$role] );
}
Changelog
Version | Description |
---|---|
WP-2.0.0 | Introduced. |