In classic themes, when block styles are loaded on demand via wp_load_classic_theme_block_styles_on_demand(), this function is replaced by a closure in wp_hoist_late_printed_styles() which will capture the printing of two sets of "late" styles to be hoisted to the HEAD by means of the template enhancement output buffer: <ol> <li>Styles related to blocks are inserted right after the wp-block-library stylesheet.</li> <li>All other styles are appended to the end of the HEAD.</li> </ol> The closure calls print_footer_scripts() to print scripts in the footer as usual.
Uses · 2
print_late_styles()Prints the styles that were queued too late for the HTML head.
print_footer_scripts()Prints the scripts that were queued for the footer or too late for the HTML head.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.