CatalogVisibility.php
1 year ago
OrderInternalStatus.php
1 year ago
OrderStatus.php
1 year ago
ProductStatus.php
1 year ago
ProductStockStatus.php
1 year ago
ProductTaxStatus.php
1 year ago
ProductType.php
1 year ago
CatalogVisibility.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for all the catalog visibility values. |
| 9 | */ |
| 10 | final class CatalogVisibility { |
| 11 | /** |
| 12 | * Product is visible on both shop and search results. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | const VISIBLE = 'visible'; |
| 17 | |
| 18 | /** |
| 19 | * Product is visible on the shop page only. |
| 20 | */ |
| 21 | const CATALOG = 'catalog'; |
| 22 | |
| 23 | /** |
| 24 | * Product visible in the search results only. |
| 25 | */ |
| 26 | const SEARCH = 'search'; |
| 27 | |
| 28 | /** |
| 29 | * Product is invisible on both shop and search results, but can still be accessed directly. |
| 30 | */ |
| 31 | const HIDDEN = 'hidden'; |
| 32 | } |
| 33 |