All features
Cherry Blossom feature
Content types: Capabilities
Synchronizes explicitly managed content type capabilities.
Synchronizes explicitly managed content type capabilities.
Capabilities and extension points
Option containing the managed capability ledger.
- var string
Initializes the capability manager.
Registers capability hooks.
Synchronizes configured role capabilities when definitions change.
Determines whether WordPress roles match the stored managed state.
- param array $desired Desired capabilities keyed by role.
- param array $previous_added Previously added capabilities keyed by role.
- return bool Whether the managed state is synchronized.
Removes capabilities previously added by this manager.
Gets desired primitive capabilities grouped by role.
- return array Capability identifiers keyed by role.
Gets grantable primitive capabilities from a registered object.
Singular meta capabilities are mapped by WordPress and must not be granted directly to roles.
- param object $registered_object Registered post type or taxonomy.
- return array Primitive capability identifiers.
Source reference
This editable reference page is based on the PHP documentation in content-types/class-capabilities.php.