Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_comment_collection_params ›

Desde4.7.0
Obsoleton/a
apply_filters( 'rest_comment_collection_params', $query_params )
Parâmetros:
  • (array) $query_params JSON Schema-formatted collection parameters.
    Required: Yes
Definido em:
Codex:

Filter collection parameters for the comments controller.

This filter registers the collection parameter, but does not map the collection parameter to an internal WP_Comment_Query parameter. Use the rest_comment_query filter to set WP_Comment_Query parameters.





Fonte

return apply_filters( 'rest_comment_collection_params', $query_params );