wp_should_load_separate_core_block_assets


wp_should_load_separate_core_block_assets ( No parameters )

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

Description

Checks whether separate styles should be loaded for core blocks on-render.When this function returns true, other functions ensure that core blocks only load their assets on-render, and each block loads its own, individual assets. Third-party blocks only load their assets when rendered. When this function returns false, all core block assets are loaded regardless of whether they are rendered in a page or not, because they are all part of the `block-library/style.css` file. Assets for third-party blocks are always enqueued regardless of whether they are rendered or not. This only affects front end and not the block editor screens.

Related Functions

_load_remote_block_patterns, wp_should_upgrade_global_tables, wp_schedule_update_checks, wp_should_load_block_editor_scripts_and_styles, wp_should_replace_insecure_home_url

Top Google Results

User discussions

wpseek mobile