wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_json_schema_allowed_keywords › WordPress Filter Hooks

Seit7.1.0
Veraltetn/v
apply_filters( 'wp_json_schema_allowed_keywords', $allowed_keywords, $schema_profile )
Parameter: (2)
  • () allowed_keywords Allowed JSON Schema keywords.
    Erforderlich: Ja
  • () schema_profile The schema profile the keywords are for.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the JSON Schema keywords allowed for a given schema profile.

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.




Quellcode

return apply_filters( 'wp_json_schema_allowed_keywords', $allowed_keywords, $schema_profile );