WC_Order::get_billing_city PHP Method

get_billing_city() public method

Get billing_city.
public get_billing_city ( string $context = 'view' ) : string
$context string
return string $value
    public function get_billing_city($context = 'view')
    {
        return $this->get_address_prop('city', 'billing', $context);
    }

Usage Example

Beispiel #1
0
 /**
  * Test: get_billing_city
  */
 function test_get_billing_city()
 {
     $object = new WC_Order();
     $set_to = 'Bedrock';
     $object->set_billing_city($set_to);
     $this->assertEquals($set_to, $object->get_billing_city());
 }
All Usage Examples Of WC_Order::get_billing_city
WC_Order