WP_Role::remove_cap

Advertisement

Summery Summery

Removes a capability from a role.

Syntax Syntax

WP_Role::remove_cap( string $cap )

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

(string) (Required) Capability name.

Source Source

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

	/**
	 * Determines whether the role has the given capability.
	 *

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.