✏️ 编辑:ProductStockStatus.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce/src/Enums/ProductStockStatus.php
大小:838 B · 修改:2026-07-15 13:50:33 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\Enums; /** * Enum class for all the product stock statuses. */ final class ProductStockStatus { /** * The product is in stock. * * @var string */ public const IN_STOCK = 'instock'; /** * The product is out of stock. * * @var string */ public const OUT_OF_STOCK = 'outofstock'; /** * The product is on backorder. * * @var string */ public const ON_BACKORDER = 'onbackorder'; /** * The product is low in stock. * * @var string */ public const LOW_STOCK = 'lowstock'; /** * Returns all product stock status values. * * @since 10.9.0 * * @return string[] */ public static function get_all(): array { return array( self::IN_STOCK, self::OUT_OF_STOCK, self::ON_BACKORDER, self::LOW_STOCK, ); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF