WordPress at a glance
filter is not described

role_has_cap filter-hook . WP 2.0.0

Filters which capabilities a role has.


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

	return $capabilities;
Array of role capabilities.
Capability name.
Role name.

Where the hook is called

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.