Automattic\WooCommerce\EmailEditor\Integrations\Utils

Html_Processing_Helper::get_caption_css_propertiespublic staticWC 1.0

Get list of safe CSS properties for caption typography (excludes background properties).

Method of the class: Html_Processing_Helper{}

No Hooks.

Returns

Array. Array of safe CSS property names for captions.

Usage

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

Html_Processing_Helper::get_caption_css_properties() code WC 10.4.3

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