Automattic\WooCommerce\EmailEditor\Integrations\Utils

Html_Processing_Helper::get_safe_css_propertiespublic staticWC 1.0

Get list of safe CSS properties for typography and basic styling.

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

Хуков нет.

Возвращает

Массив. Array of safe CSS property names.

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

$result = Html_Processing_Helper::get_safe_css_properties(): array;

Код Html_Processing_Helper::get_safe_css_properties() WC 10.4.3

public static function get_safe_css_properties(): array {
	return array(
		'color',
		'background-color',
		'font-family',
		'font-size',
		'font-weight',
		'font-style',
		'text-decoration',
		'text-align',
		'line-height',
		'letter-spacing',
		'text-transform',
	);
}