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

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

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.

Parameters

$preload_paths

(string[]) Array of paths to preload.

$selected_post

(WP_Post) Post being edited.

Source

File: wp-includes/block-editor.php

View on Trac

Changelog

Version Description
5.8.0 Use the 'block_editor_rest_api_preload_paths' filter instead.
5.0.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_editor_preload_paths