WordPress at a glance
filter is not described

role_has_cap filter-hook . WP 2.0.0

Filters which capabilities a role has.

Usage

add_filter( 'role_has_cap', 'filter_function_name_1823', 10, 3 );
function filter_function_name_1823( $capabilities, $cap, $name ){
	// filter...

	return $capabilities;
}
$capabilities(true/false[])
Associative array of capabilities for the role.
$cap(string)
Capability name.
$name(string)
Role name.

Changelog

Since 2.0.0 Introduced.

Where the hook is called

WP_Role::has_cap()
role_has_cap
wp-includes/class-wp-role.php 101
$capabilities = apply_filters( 'role_has_cap', $this->capabilities, $cap, $this->name );

Where the hook is used (in WP core)

Usage not found!