wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
should_load_block_assets_on_demand › WordPress Filter Hooks
Da6.8.0
Deprecaton/a
› apply_filters( 'should_load_block_assets_on_demand', $load_assets_on_demand )
| Parametri: |
|
| Definito a: |
|
| Codex: |
Filters whether block styles should be loaded on demand.
Returning false loads all block assets, regardless of whether they are rendered in a page or not. Returning true loads block assets only when they are rendered. The default value of the filter depends on the result of {@see \wp_should_load_separate_core_block_assets()}, which controls whether Core block stylesheets should be loaded separately or via a combined 'wp-block-library' stylesheet.Funzioni correlate: wp_should_load_block_assets_on_demand, wp_load_classic_theme_block_styles_on_demand, wp_should_load_separate_core_block_assets, wp_should_load_block_editor_scripts_and_styles, generate_block_asset_handle, _add_block_template_info