WC_Order::is_paid PHP 메소드

is_paid() 공개 메소드

Returns if an order has been paid for based on the order status.
부터: 2.5.0
public is_paid ( ) : boolean
리턴 boolean
    public function is_paid()
    {
        return apply_filters('woocommerce_order_is_paid', $this->has_status(wc_get_is_paid_statuses()), $this);
    }

Usage Example

예제 #1
0
 /**
  * Test: is_paid
  */
 function test_is_paid()
 {
     $object = new WC_Order();
     $object->set_status('pending');
     $this->assertFalse($object->is_paid());
     $object->set_status('processing');
     $this->assertTrue($object->is_paid());
 }
All Usage Examples Of WC_Order::is_paid
WC_Order