Automattic\WooCommerce\Internal\Fulfillments

FulfillmentUtils::get_order_fulfillment_statuspublic staticWC 1.0

Get the fulfillment status of an order.

Method of the class: FulfillmentUtils{}

No Hooks.

Returns

String. The fulfillment status.

Usage

$result = FulfillmentUtils::get_order_fulfillment_status( $order ): string;
$order(WC_Order) (required)
The order object.

FulfillmentUtils::get_order_fulfillment_status() code WC 10.3.3

public static function get_order_fulfillment_status( WC_Order $order ): string {
	if ( ! $order instanceof WC_Order ) {
		return 'no_fulfillments';
	}

	return $order->meta_exists( '_fulfillment_status' ) ? $order->get_meta( '_fulfillment_status', true ) : 'no_fulfillments';
}