Used By
Used By | Description |
---|---|
wp-includes/class-wp-role.php: WP_Role::has_cap() | Determines whether the role has the given capability. |
Filters which capabilities a role has.
(bool[]) Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
(string) Capability name.
(string) Role name.
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/role_has_cap