block_editor_preload_paths

block_editor_preload_paths

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.7.2

apply_filters('block_editor_preload_paths') is found 1 times:

  • /wp-admin/edit-form-blocks.php line 70
     *
     * @param string[] $preload_paths Array of paths to preload.
     * @param WP_Post  $post          Post being edited.
     */
    $preload_paths = apply_filters( 'block_editor_preload_paths', $preload_paths, $post );
    
    /*
     * Ensure the global $post remains the same after API data is preloaded.
     * Because API preloading can call the_content and other filters, plugins
     * can unexpectedly modify $post.
     */
    

See this hook used in plugins: