WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about should_load_separate_core_block_assets

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/script-loader.php apply_filters 2539 /**
* 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.
*
* @since 5.8.0
*
* @param bool $load_separate_assets Whether separate assets will be loaded.
* Default false (all block assets are loaded, even when not used).
*/

Hook Parameters

Parameter Type Name Description
bool $load_separate_assets Whether separate assets will be loaded.