wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_abilities_collection_params › WordPress Filter Hooks

Since7.1.0
Deprecatedn/a
apply_filters( 'rest_abilities_collection_params', $query_params )
Parameters:
  • () query_params JSON Schema-formatted collection parameters.
    Required: Yes
Defined at:
Codex:

Filters REST API collection parameters for the abilities controller.

Use this to declare the schema type of a custom meta key. A declared type lets REST coerce a query-string value, for example "true" to a boolean, before the meta filter matches it.




Source

return apply_filters( 'rest_abilities_collection_params', $query_params );