wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_ability_validate_input › WordPress Filter Hooks
Since7.1.0
Deprecatedn/a
› apply_filters( 'wp_ability_validate_input', $is_valid, $input, $this->name )
| Parameters: (3) |
|
| Defined at: | |
| Codex: |
Filters the input 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.Related Functions: wp_http_validate_url, wp_validate_redirect, wp_validate_site_data, rest_validate_enum, wp_get_ability_categories, wp_initialize_site