Filters the JSON Schema keywords allowed for a given schema profile.
Description
Use this to decide which keywords may be exposed to clients for a profile.
It does not make WordPress validate or sanitize values against the keyword.
Parameters
$allowed_keywordsstring[]- Allowed JSON Schema keywords.
$schema_profilestring- The schema profile the keywords are for.
Source
return apply_filters( 'wp_json_schema_allowed_keywords', $allowed_keywords, $schema_profile );
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.