wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_enqueue_global_styles_css_custom_properties › WordPress Function

Od5.9.0
Przestarzałyn/a
wp_enqueue_global_styles_css_custom_properties ( Brak parametrów )
Zdefiniowane na:
Codex:

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



Źródło

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' );
}