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



should_load_separate_core_block_assets › Hooks de Filtros WordPress

Desde5.8.0
Obsoleton/a
apply_filters( 'should_load_separate_core_block_assets', false )
Parâmetros:
  • (bool) $load_separate_assets Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
    Required: Yes
Definido em:
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.





Fonte

return apply_filters( 'should_load_separate_core_block_assets', false );