Automattic\WooCommerce\Admin\Features\Fulfillments
FulfillmentUtils::get_order_fulfillment_statuses
Get the order fulfillment statuses.
This method provides the order fulfillment statuses that can be used in the WooCommerce Fulfillments system. It can be filtered using the woocommerce_fulfillment_order_fulfillment_statuses
Метод класса: FulfillmentUtils{}
Хуки из метода
Возвращает
array. An associative array of order fulfillment statuses.
Использование
$result = FulfillmentUtils::get_order_fulfillment_statuses(): array;
Код FulfillmentUtils::get_order_fulfillment_statuses() FulfillmentUtils::get order fulfillment statuses WC 11.2.2
public static function get_order_fulfillment_statuses(): array {
/**
* This filter allows plugins to modify the list of order fulfillment statuses.
* It can be used to add, remove, or change the order fulfillment statuses available in the
* WooCommerce Fulfillments system.
*
* @since 10.1.0
*
* @param array $order_fulfillment_statuses The default list of order fulfillment statuses.
*/
return apply_filters(
'woocommerce_fulfillment_order_fulfillment_statuses',
self::get_default_order_fulfillment_statuses()
);
}