wp-includes/script-loader.php:3273Hooks inline styles in the proper place, depending on the active theme.
$stylestring$priorityintoptional10function wp_enqueue_block_support_styles( $style, $priority = 10 ) { $action_hook_name = 'wp_footer'; if ( wp_is_block_theme() ) { $action_hook_name = 'wp_head'; } add_action( $action_hook_name, static function () use ( $style ) { $processor = new WP_HTML_Tag_Processor( '<style></style>' ); $processor->next_tag(); $processor->set_modifiable_text( $style ); echo "{$processor->get_updated_html()}\n"; }, $priority );}Introduced in 5.9.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.