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

	return $capabilities;
}
$capabilities(true/false[])
Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
$cap(string)
Capability name.
$name(string)
Role name.

Список изменений

С версии 2.0.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.