WP_Duotone::output_global_styles()

In this article

Appends the used global style duotone filter presets (CSS custom properties) to the inline global styles CSS.

Description

Uses the declarations saved in earlier calls to self::enqueue_global_styles_preset.

Source

public static function output_global_styles() {
	if ( ! empty( self::$used_global_styles_presets ) ) {
		wp_add_inline_style( 'global-styles', self::get_global_styles_presets( self::$used_global_styles_presets ) );
	}
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.