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