Automattic\WooCommerce\Internal\ProductAttributes

VisualAttributeTermMeta::get_empty_visual │ public static │ WC 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 11.1.2

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