PluginProbe
WooCommerce / 11.0.0
WooCommerce v11.0.0
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / src / Api / Enums / Products / ProductStatus.php
ProductStatus.php
36 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Automattic\WooCommerce\Api\Enums\Products;
6
7 use Automattic\WooCommerce\Api\Attributes\Deprecated;
8 use Automattic\WooCommerce\Api\Attributes\Description;
9 use Automattic\WooCommerce\Api\Attributes\Name;
10
11 #[Description( 'The publication status of a product.' )]
12 enum ProductStatus: string {
13 #[Description( 'The product is a draft.' )]
14 case Draft = 'draft';
15
16 #[Description( 'The product is pending review.' )]
17 case Pending = 'pending';
18
19 #[Name( 'ACTIVE' )]
20 #[Description( 'The product is published and visible.' )]
21 case Published = 'publish';
22
23 #[Description( 'The product is privately published.' )]
24 case Private = 'private';
25
26 #[Description( 'The product is scheduled to be published in the future.' )]
27 case Future = 'future';
28
29 #[Deprecated( 'Trashed products should be excluded via status filter.' )]
30 #[Description( 'The product is in the trash.' )]
31 case Trash = 'trash';
32
33 #[Description( 'The product status is not one of the standard WordPress values (e.g. added by a plugin). Inspect raw_status for the underlying value.' )]
34 case Other = 'other';
35 }
36