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

	return $capabilities;
Array of key/value pairs where keys represent a capability name and boolean values represent whether the role has that capability.
Capability name.
Role name.

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

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

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

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

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

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