wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



block_editor_rest_api_preload_paths › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context )
Parâmetros: (2)
  • ((string|string[])[]) $preload_paths Array of paths to preload.
    Required: Yes
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required: Yes
Definido em:
Codex:

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





Fonte

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