WP_Role::remove_cap

SummerySummery

Removes a capability from a role.

Syntax

WP_Role::remove_cap( string $cap )

DescriptionDescription

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.

ParametersParameters

$cap

(string) (Required) Capability name.

SourceSource

File: wp-includes/class-wp-role.php


			

ChangelogChangelog

Changelog
Version Description
2.0.0 Introduced.
Scroll to Top