Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermMeta::get_empty_visualpublic staticWC 10.9.0

Get an empty visual term value.

Method of the class: VisualAttributeTermMeta{}

No Hooks.

Returns

Array{type:. string, value: string}

Usage

$result = VisualAttributeTermMeta::get_empty_visual(): array;

Changelog

Since 10.9.0 Introduced.

VisualAttributeTermMeta::get_empty_visual() code WC 10.9.1

public static function get_empty_visual(): array {
	return array(
		'type'  => self::TYPE_NONE,
		'value' => '',
	);
}