WP_Duotone::output_block_styles()public staticWP 6.3.0

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

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

Метод класса: WP_Duotone{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WP_Duotone::output_block_styles();

Список изменений

С версии 6.3.0 Введена.

Код WP_Duotone::output_block_styles() WP 6.6.2

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