Filter hook 'rest_prepare_block_pattern'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php at line 222

Description

Filters the REST API response for a block pattern.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php 222

Parameters

Type Name Description
WP_REST_Response $response The response object.
object $raw_pattern The unprepared block pattern.
WP_REST_Request $request The request object.

PHP Doc

/**
		 * Filters the REST API response for a block pattern.
		 *
		 * @since 5.8.0
		 *
		 * @param WP_REST_Response $response    The response object.
		 * @param object           $raw_pattern The unprepared block pattern.
		 * @param WP_REST_Request  $request     The request object.
		 */