wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



block_editor_rest_api_preload_paths › Filtr WordPress Hooks

Od5.8.0
Przestarzałyn/a
apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context )
Parametry: (2)
  • ((string|string[])[]) $preload_paths Array of paths to preload.
    Wymagane: Tak
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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