rest_filter_response_by_context


rest_filter_response_by_context ( $data, $schema, $context )

Parameters:
  • (array|object) data The response data to modify.
  • (array) schema The schema for the endpoint used to filter the response.
  • (string) context The requested context.
Returns:
  • (array|object) The filtered response data.
Defined at:

Description

Filters the response to remove any fields not available in the given context.

Related Functions

rest_filter_response_fields, rest_ensure_response, _oembed_filter_feed_content, _wp_menu_item_classes_by_context, filter_block_content

Top Google Results

User discussions

wpseek mobile