Automattic\WooCommerce\Admin\Features\Fulfillments
FulfillmentUtils::get_default_order_fulfillment_statuses
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
Метод класса: FulfillmentUtils{}
Хуков нет.
Возвращает
array. An associative array of default order fulfillment statuses.
Использование
$result = FulfillmentUtils::get_default_order_fulfillment_statuses(): array;
Код FulfillmentUtils::get_default_order_fulfillment_statuses() FulfillmentUtils::get default order fulfillment statuses WC 11.2.2
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',
),
);
}