wp_enqueue_global_styles_css_custom_properties()WP 5.9.0

Function that enqueues the CSS Custom Properties coming from theme.json.

No Hooks.

Return

null. Nothing.

Usage

wp_enqueue_global_styles_css_custom_properties();

Changelog

Since 5.9.0 Introduced.

Code of wp_enqueue_global_styles_css_custom_properties() WP 6.0

function wp_enqueue_global_styles_css_custom_properties() {
	wp_register_style( 'global-styles-css-custom-properties', false, array(), true, true );
	wp_add_inline_style( 'global-styles-css-custom-properties', wp_get_global_stylesheet( array( 'variables' ) ) );
	wp_enqueue_style( 'global-styles-css-custom-properties' );
}