wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



block_editor_rest_api_preload_paths › WordPress Filter Hooks

Seit5.8.0
Veraltetn/v
apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context )
Parameter: (2)
  • ((string|string[])[]) $preload_paths Array of paths to preload.
    Erforderlich: Ja
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the array of REST API paths that will be used to preloaded common data for the block editor.





Quellcode

$preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );