wp_should_load_separate_core_block_assets


wp_should_load_separate_core_block_assets ( No parameters )

See:
Returns:
  • (bool) Whether separate core block assets will be loaded.
Defined at:

Description

Checks whether separate styles should be loaded for core blocks.When this function returns true, other functions ensure that core blocks use their own separate stylesheets. When this function returns false, all core blocks will use the single combined 'wp-block-library' stylesheet. As a side effect, the return value will by default result in block assets to be loaded on demand, via the {@see} function. This behavior can be separately altered via that function. This only affects front end and not the block editor screens.

Related Functions

wp_should_load_block_assets_on_demand, _load_remote_block_patterns, wp_should_add_elements_class_name, wp_should_upgrade_global_tables, build_template_part_block_variations

Top Google Results

User discussions

wpseek mobile