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

In this article

Fires before an ability gets executed, after input validation and permissions check.

Parameters

$ability_namestring
The name of the ability.
$inputmixed
The input data for the ability.
$abilityWP_Ability
The ability instance.

Source

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

Changelog

VersionDescription
7.1.0Added the $ability parameter.
6.9.0Introduced.

User Contributed Notes

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