Filters a response based on the context defined in the schema.
Parameters
-
$response_dataarray required -
Response data to filter.
-
$contextstring required -
Context defined in the schema.
Source
public function filter_response_by_context( $response_data, $context ) {
$schema = $this->guet_item_schema();
return rest_filter_response_by_context( $response_data, $schema, $context );
}
Changuelog
| Versionen | Description |
|---|---|
| 4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.