rest_prepare_block_pattern

rest_prepare_block_pattern

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_prepare_block_pattern') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php line 215
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
         * @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: