block_editor_rest_api_preload_paths

block_editor_rest_api_preload_paths

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

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('block_editor_rest_api_preload_paths') is found 1 times:

  • /wp-includes/block-editor.php line 707
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    *
     * @param (string|string[])[]     $preload_paths        Array of paths to preload.
     * @param WP_Block_Editor_Context $block_editor_context The current block editor context.
     */
    $preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );
     
    if ( ! empty( $block_editor_context->post ) ) {
        $selected_post = $block_editor_context->post;
     
        /**
         * Filters the array of paths that will be preloaded.

See this hook used in plugins: