Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentUtils::get_default_fulfillment_statuses │ protected static │ WC 1.0

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() code WC 11.1.2

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',
		),
	);
}