should_load_separate_core_block_assets

should_load_separate_core_block_assets

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.8.3

apply_filters('should_load_separate_core_block_assets') is found 1 times:

  • /wp-includes/script-loader.php line 2630
    	 *
    	 * @param bool $load_separate_assets Whether separate assets will be loaded.
    	 *                                   Default false (all block assets are loaded, even when not used).
    	 */
    	return apply_filters( 'should_load_separate_core_block_assets', false );
    }
    
    /**
     * Checks whether block styles should be loaded only on-render.
     *
     * When this function returns true, other functions ensure that blocks only load their assets on-render.
    

See this hook used in plugins: