Skip to main content

Filter: wp_ability_permission_result

Core's permission filter (WordPress 7.1), with core's arguments except the last: core passes the WP_Ability, which does not exist here. Documented in wp-includes/abilities-api/class-wp-ability.php.

Parameters​

NameTypeDescription
$permissionbool|\WP_ErrorThe permission result so far: always a pass here.
$ability_namestringThe name of the ability.
$inputmixedThe input data for the permission check.
$abilitynullNull; core passes the WP_Ability.

Source​

Defined in MergeTags/AbilitiesFallback.php at line 243