WP_REST_Blocks_Controller::filter_response_by_context

SummerySummery

Filters a response based on the context defined in the schema.

Syntax

WP_REST_Blocks_Controller::filter_response_by_context( array $data, string $context )

ParametersParameters

$data

(array) (Required) Response data to fiter.

$context

(string) (Required) Context defined in the schema.

ReturnReturn

(array) Filtered response.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top