rest_filter_response_by_context


rest_filter_response_by_context ( $response_data, $schema, $context )

Parameters:
  • (array|object) response_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:
Change Log:
  • 5: .

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, _filter_do_shortcode_context, _wp_menu_item_classes_by_context

Top Google Results

User discussions

wpseek mobile