wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_enqueue_global_styles_css_custom_properties › WordPress Function

Since5.9.0
Deprecatedn/a
wp_enqueue_global_styles_css_custom_properties ( No parameters )
Defined at:
Codex:

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



Source

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