Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormProcessor::has_order_withdrawal_request
Whether the matched order already has a submitted withdrawal request.
Method of the class: OrderWithdrawalFormProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->has_order_withdrawal_request( $order ): bool;
- $order(WC_Order) (required)
- Matched order.
OrderWithdrawalFormProcessor::has_order_withdrawal_request() OrderWithdrawalFormProcessor::has order withdrawal request code WC 11.1.2
private function has_order_withdrawal_request( WC_Order $order ): bool {
return self::ORDER_WITHDRAWAL_REQUESTED_VALUE === $order->get_meta( self::ORDER_WITHDRAWAL_REQUESTED_META_KEY, true, 'edit' );
}