rest_prepare_block_type

rest_prepare_block_type

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_type') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php line 349
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
         * @param WP_REST_Response $response   The response object.
         * @param WP_Block_Type    $block_type The original block type object.
         * @param WP_REST_Request  $request    Request used to generate the response.
         */
        return apply_filters( 'rest_prepare_block_type', $response, $block_type, $request );
    }
     
    /**
     * Prepares links for the request.
     *
     * @since 5.5.0

See this hook used in plugins: