wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_ability_normalize_input › Filtr WordPress Hooks

Od7.1.0
Przestarzałyn/a
› apply_filters( 'wp_ability_normalize_input', $input, $this->name, $this )
Parametry: (3)
  • () input The normalized input data.
    Wymagane: Tak
  • () ability_name The name of the ability.
    Wymagane: Tak
  • () ability The ability instance.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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.




Źródło

return apply_filters( 'wp_ability_normalize_input', $input, $this->name, $this );