WC_Order::get_billing_state PHP Method

get_billing_state() public method

Get billing_state.
public get_billing_state ( string $context = 'view' ) : string
$context string
return string
    public function get_billing_state($context = 'view')
    {
        return $this->get_address_prop('state', 'billing', $context);
    }

Usage Example

示例#1
0
 /**
  * Test: get_billing_state
  */
 function test_get_billing_state()
 {
     $object = new WC_Order();
     $set_to = 'Boulder';
     $object->set_billing_state($set_to);
     $this->assertEquals($set_to, $object->get_billing_state());
 }
All Usage Examples Of WC_Order::get_billing_state
WC_Order