Automattic\WooCommerce\Internal\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
Method of the class: FulfillmentUtils{}
Hooks from the method
Returns
Array. An associative array of order fulfillment statuses.
Usage
$result = FulfillmentUtils::get_order_fulfillment_statuses(): array;
FulfillmentUtils::get_order_fulfillment_statuses() FulfillmentUtils::get order fulfillment statuses code WC 10.3.3
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()
);
}