apply_filters( 'role_has_cap', array $capabilities, string $cap, string $name )

Filters which capabilities a role has.


Parameters

$capabilities

Array of role capabilities.

$cap

Capability name.

$name

Role name.


Source

File: wp-includes/class-wp-role.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.0.0 Introduced.