wp-includes/abilities-api/class-wp-ability.php:483Normalizes the input for the ability, applying the default value from the input schema when needed.
$inputmixedoptionalnullmixedOne hook fires while WP_Ability::normalize_input() runs, in this order:
Filters the normalized input for an ability.
public function normalize_input( $input = null ) { if ( null === $input ) { $input_schema = $this->get_input_schema(); if ( array_key_exists( 'default', $input_schema ) ) { $input = $input_schema['default']; } } /** * Filters the normalized input for an ability. * * Fires after `normalize_input()` has applied any default value declared in the input schema, * giving plugins a chance to adjust the input before it is consumed downstream. Common uses * include defaulting beyond what JSON Schema can express, prompt enrichment, and injecting * caller metadata. * * Returning a `WP_Error` causes callers that propagate it (such as `execute()`) to halt * before validation, permission checks, and the registered execute callback. * * @since 7.1.0 * * @param mixed $input The normalized input data. * @param string $ability_name The name of the ability. * @param WP_Ability $ability The ability instance. */ return apply_filters( 'wp_ability_normalize_input', $input, $this->name, $this ); }Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/abilities-api/class-wp-ability.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.