Automattic\WooCommerce\Enums

CatalogVisibility::get_allpublic staticWC 10.9.0

Returns all catalog visibility values.

Method of the class: CatalogVisibility{}

No Hooks.

Returns

String[].

Usage

$result = CatalogVisibility::get_all(): array;

Changelog

Since 10.9.0 Introduced.

CatalogVisibility::get_all() code WC 10.9.1

public static function get_all(): array {
	return array(
		self::VISIBLE,
		self::CATALOG,
		self::SEARCH,
		self::HIDDEN,
	);
}