Summery Summery
Removes a capability from a role.
Syntax Syntax
Description Description
This is a container for WP_Roles::remove_cap() to remove the capability from the role. That is to say, that WP_Roles::remove_cap() implements the functionality, but it also makes sense to use this class, because you don’t need to enter the role name.
Parameters Parameters
- $cap
-
(Required) Capability name.
Source Source
File: wp-includes/class-wp-role.php
/** * Determines whether the role has the given capability. *
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |