wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_ability_validate_output › WordPress Filter Hooks

Seit7.1.0
Veraltetn/v
apply_filters( 'wp_ability_validate_output', $is_valid, $output, $this->name )
Parameter: (3)
  • () is_valid The validation result from default validation.
    Erforderlich: Ja
  • () output The output data being validated.
    Erforderlich: Ja
  • () ability_name The name of the ability.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the output validation result for an ability.

Allows developers to add custom validation logic on top of the default JSON Schema validation. If default validation already failed, the filter receives the WP_Error object and can add additional error information or override it. If default validation passed, the filter can add additional validation checks and return a WP_Error if those checks fail.




Quellcode

$validity = apply_filters( 'wp_ability_validate_output', $is_valid, $output, $this->name );