Automattic\WooCommerce\Enums
CatalogVisibility::get_all
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() CatalogVisibility::get all code WC 10.9.1
public static function get_all(): array {
return array(
self::VISIBLE,
self::CATALOG,
self::SEARCH,
self::HIDDEN,
);
}