wp/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    39 	/**
    39 	/**
    40 	 * Filters a response based on the context defined in the schema.
    40 	 * Filters a response based on the context defined in the schema.
    41 	 *
    41 	 *
    42 	 * @since 5.0.0
    42 	 * @since 5.0.0
    43 	 *
    43 	 *
    44 	 * @param array  $data    Response data to fiter.
    44 	 * @param array  $data    Response data to filter.
    45 	 * @param string $context Context defined in the schema.
    45 	 * @param string $context Context defined in the schema.
    46 	 * @return array Filtered response.
    46 	 * @return array Filtered response.
    47 	 */
    47 	 */
    48 	public function filter_response_by_context( $data, $context ) {
    48 	public function filter_response_by_context( $data, $context ) {
    49 		$data = parent::filter_response_by_context( $data, $context );
    49 		$data = parent::filter_response_by_context( $data, $context );