wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_ability_validate_input › Les Filtres WordPress
Depuis7.1.0
Dépréciéen/a
› apply_filters( 'wp_ability_validate_input', $is_valid, $input, $this->name )
| Paramètres: (3) |
|
| Défini(e) dans: | |
| 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.Fonctions en relation: wp_http_validate_url, wp_validate_redirect, wp_validate_site_data, rest_validate_enum, wp_get_ability_categories, wp_initialize_site