Filters which capabilities a role has.
$capabilitiesbool[]
$capstring
$namestring
$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/role_has_cap