apply_filters( ‘wp_json_schema_allowed_keywords’, string[] $allowed_keywords, string $schema_profile )

In this article

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

VersionDescription
7.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.