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



should_load_separate_core_block_assets › WordPress Filter Hooks

Seit5.8.0
Veraltetn/v
apply_filters( 'should_load_separate_core_block_assets', false )
Parameter:
  • (bool) $load_separate_assets Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
    Erforderlich: Ja
Definiert in:
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.





Quellcode

return apply_filters( 'should_load_separate_core_block_assets', false );