apply_filters_deprecated( ‘block_editor_preload_paths’, (string|string[])[] $preload_paths, WP_Post $selected_post )

This hook has been deprecated. Use the {@see ‘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|string[])[]
Array of paths to preload.
$selected_postWP_Post
Post being edited.

Source

$preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' );

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.