Filter hook 'role_has_cap'

in WP Core File wp-includes/class-wp-role.php at line 95

Description

Filters which capabilities a role has.

Occurrences

Filename Line Number
wp-includes/class-wp-role.php 95

Parameters

Type Name Description
bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
string $cap Capability name.
string $name Role name.

PHP Doc

/**
		 * Filters which capabilities a role has.
		 *
		 * @since 2.0.0
		 *
		 * @param bool[] $capabilities Array of key/value pairs where keys represent a capability name and boolean values
		 *                             represent whether the role has that capability.
		 * @param string $cap          Capability name.
		 * @param string $name         Role name.
		 */