Automattic\WooCommerce\Internal\Fulfillments

FulfillmentUtils::get_default_order_fulfillment_statusesprotected staticWC 1.0

Get the default order fulfillment statuses.

This method provides the default 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{}

No Hooks.

Returns

Array. An associative array of default order fulfillment statuses.

Usage

$result = FulfillmentUtils::get_default_order_fulfillment_statuses(): array;

FulfillmentUtils::get_default_order_fulfillment_statuses() code WC 10.3.3

protected static function get_default_order_fulfillment_statuses(): array {
	return array(
		'fulfilled'           => array(
			'label'            => __( 'Fulfilled', 'woocommerce' ),
			'background_color' => '#C6E1C6',
			'text_color'       => '#13550F',
		),
		'partially_fulfilled' => array(
			'label'            => __( 'Partially fulfilled', 'woocommerce' ),
			'background_color' => '#C8D7E1',
			'text_color'       => '#003D66',
		),
		'unfulfilled'         => array(
			'label'            => __( 'Unfulfilled', 'woocommerce' ),
			'background_color' => '#FBE5E5',
			'text_color'       => '#CC1818',
		),
		'no_fulfillments'     => array(
			'label'            => __( 'No fulfillments', 'woocommerce' ),
			'background_color' => '#F0F0F0',
			'text_color'       => '#2F2F2F',
		),
	);
}