do_action( ‘wp_ability_invoked’, string $ability_name, mixed $input, WP_Ability $ability )

In this article

Fires when an ability is invoked, before any processing takes place.

Description

This action fires for every call regardless of outcome (validation failure, permission denial, short-circuit, or successful execution), and before input normalization so the raw input is captured as-is.

Parameters

$ability_namestring
The name of the ability.
$inputmixed
The raw input data for the ability, before normalization.
$abilityWP_Ability
The ability instance.

Source

do_action( 'wp_ability_invoked', $this->name, $input, $this );

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.