wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



block_editor_rest_api_preload_paths › Les Filtres WordPress

Depuis5.8.0
Dépréciéen/a
apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context )
Paramètres: (2)
  • ((string|string[])[]) $preload_paths Array of paths to preload.
    Requis: Oui
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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