wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_json_schema_allowed_keywords › WordPress过滤钩子

Since7.1.0
已弃用n/a
› apply_filters( 'wp_json_schema_allowed_keywords', $allowed_keywords, $schema_profile )
参数: (2)
  • () allowed_keywords Allowed JSON Schema keywords.
    Required: Yes
  • () schema_profile The schema profile the keywords are for.
    Required: Yes
定义在:
文档:

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.




源码

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