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



should_load_separate_core_block_assets › Les Filtres WordPress

Depuis5.8.0
Dépréciéen/a
apply_filters( 'should_load_separate_core_block_assets', false )
Paramètres:
  • (bool) $load_separate_assets Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
    Requis: Oui
Défini(e) dans:
Codex:

Filters whether block styles should be loaded separately.

Returning false loads all core block assets, regardless of whether they are rendered in a page or not. Returning true loads core block assets only when they are rendered.





Source

return apply_filters( 'should_load_separate_core_block_assets', false );