Fires before an ability gets executed, after input validation and permissions check.
$ability_namestring$inputmixed$abilityWP_Abilitywp-includes/abilities-api/class-wp-ability.php:852WP_Ability::execute() * @since 7.1.0 Added the `$ability` parameter. * * @param string $ability_name The name of the ability. * @param mixed $input The input data for the ability. * @param WP_Ability $ability The ability instance. */ do_action( 'wp_before_execute_ability', $this->name, $input, $this ); $result = $this->do_execute( $input ); if ( is_wp_error( $result ) ) { return $result; }Introduced in 6.9.0. One change between 6.9.7 and 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
$ability added.verified against source