role_has_cap

Advertisement

Summery Summery

Filters which capabilities a role has.

Syntax Syntax

apply_filters( 'role_has_cap', bool[] $capabilities, string $cap, string $name )

Parameters Parameters

$capabilities

Associative array of capabilities for the role.

$cap

Capability name.

$name

Role name.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply