wppaste
WordPress

do_action( 'wp_before_execute_ability', string $ability_name, mixed $input )

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

Compatibility

WordPress
since 6.9.0
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in 3 of the 5 tracked releases, added in 6.9.0.

Parameters

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

Where this hook fires · 1

  • wp-includes/abilities-api/class-wp-ability.php:631WP_Ability::execute()

Source code

		 *		 * @since 6.9.0		 *		 * @param string $ability_name The name of the ability.		 * @param mixed  $input        The input data for the ability.		 */		do_action( 'wp_before_execute_ability', $this->name, $input ); 		$result = $this->do_execute( $input );		if ( is_wp_error( $result ) ) {			return $result;		}

Changelog

Introduced in 6.9.0. One change between 6.9.10 and 7.1.3.

  1. 6.9.10
  2. 7.0.7
  3. 7.1.3

Signature, return type and hooks compared across 3 parsed releases.

7.1.3
Parameter $ability added.verified against source
6.9.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.9.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.