Automattic\WooCommerce\Internal\Fulfillments
FulfillmentUtils::get_default_fulfillment_statuses
Get the default fulfillment statuses.
This method provides the default fulfillment statuses that can be used in the WooCommerce Fulfillments system. It can be filtered using the woocommerce_fulfillment_fulfillment_statuses
Method of the class: FulfillmentUtils{}
No Hooks.
Returns
Array. An associative array of default fulfillment statuses.
Usage
$result = FulfillmentUtils::get_default_fulfillment_statuses(): array;
FulfillmentUtils::get_default_fulfillment_statuses() FulfillmentUtils::get default fulfillment statuses code WC 10.3.3
protected static function get_default_fulfillment_statuses(): array {
return array(
'fulfilled' => array(
'label' => __( 'Fulfilled', 'woocommerce' ),
'is_fulfilled' => true,
'background_color' => '#C6E1C6',
'text_color' => '#13550F',
),
'unfulfilled' => array(
'label' => __( 'Unfulfilled', 'woocommerce' ),
'is_fulfilled' => false,
'background_color' => '#FBE5E5',
'text_color' => '#CC1818',
),
);
}