Automattic\WooCommerce\Blocks\BlockTypes

CustomerAccount::get_allowed_svgprivateWC 1.0

Get the allowed SVG tags and attributes for wp_kses.

Method of the class: CustomerAccount{}

No Hooks.

Returns

Array. Allowed SVG elements and attributes.

Usage

// private - for code of main (parent) class only
$result = $this->get_allowed_svg();

CustomerAccount::get_allowed_svg() code WC 10.8.1

private function get_allowed_svg() {
	return array(
		'svg'    => array(
			'class'   => true,
			'xmlns'   => true,
			'width'   => true,
			'height'  => true,
			'viewbox' => true,
		),
		'path'   => array(
			'd'         => true,
			'fill'      => true,
			'fill-rule' => true,
			'clip-rule' => true,
		),
		'circle' => array(
			'cx'           => true,
			'cy'           => true,
			'r'            => true,
			'stroke'       => true,
			'stroke-width' => true,
			'fill'         => true,
		),
	);
}