rest_prepare_block_pattern

rest_prepare_block_pattern

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('rest_prepare_block_pattern') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php line 222
    		 * @param WP_REST_Response $response    The response object.
    		 * @param object           $raw_pattern The unprepared block pattern.
    		 * @param WP_REST_Request  $request     The request object.
    		 */
    		return apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request );
    	}
    
    	/**
    	 * Retrieves the block pattern's schema, conforming to JSON Schema.
    	 *
    	 * @since 5.8.0
    

See this hook used in plugins: