Warning: This hook has been deprecated. Use the ‘block_editor_rest_api_preload_paths’ filter instead.

block_editor_preload_paths WordPress Hook

The block_editor_preload_paths hook allows you to specify additional paths to preload when the Block Editor is initialized. This can be useful if you need to load blocks from a remote location or from a plugin that is not currently active.

apply_filters_deprecated( 'block_editor_preload_paths', string[] $preload_paths, WP_Post $selected_post ) #

Filters the array of paths that will be preloaded.


Description

Preload common data by specifying an array of REST API paths that will be preloaded.


Top ↑

Parameters

$preload_paths

(string[])Array of paths to preload.

$selected_post

(WP_Post)Post being edited.


Top ↑

Source

File: wp-includes/block-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.8.0Use the 'block_editor_rest_api_preload_paths' filter instead.
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.