ACF\AI\Abilities
ACF_REST_Ability::validate_output
Override validate_output to always return true.
Since we're proxying to WordPress REST API endpoints that have their own validation, we trust their output and skip Abilities API output validation.
Method of the class: ACF_REST_Ability{}
No Hooks.
Returns
true. Always returns true to skip validation.
Usage
// protected - for code of main (parent) or child class $result = $this->validate_output( $output );
- $output(mixed) (required)
- The output to validate.
Changelog
| Since 6.8.0 | Introduced. |
ACF_REST_Ability::validate_output() ACF REST Ability::validate output code ACF 6.8.8
protected function validate_output( $output ) {
return true;
}