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_1943', 10, 3 );
function filter_function_name_1943( $capabilities, $cap, $name ){
	// filter...

	return $capabilities;
}
$capabilities(array)
Array of role capabilities.
$cap(string)
Capability name.
$name(string)
Role name.

Where the hook is called

WP_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)

Does not used.