WP_Duotone::output_block_styles()

Appends the used block duotone filter declarations to the inline block supports CSS.


Description

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


Top ↑

Source

File: wp-includes/class-wp-duotone.php. View all references

public static function output_block_styles() {
	if ( ! empty( self::$block_css_declarations ) ) {
		wp_style_engine_get_stylesheet_from_css_rules(
			self::$block_css_declarations,
			array(
				'context' => 'block-supports',
			)
		);
	}
}


Top ↑

Changelog

Changelog
Version Description
6.3.0 Introduced.

Top ↑

User Contributed Notes

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