WC_Order::get_billing_address_1 PHP Method

get_billing_address_1() public method

Get billing_address_1.
public get_billing_address_1 ( string $context = 'view' ) : string
$context string
return string
    public function get_billing_address_1($context = 'view')
    {
        return $this->get_address_prop('address_1', 'billing', $context);
    }

Usage Example

Beispiel #1
0
 /**
  * Test: get_billing_address_1
  */
 function test_get_billing_address_1()
 {
     $object = new WC_Order();
     $set_to = '34 Stonepants avenue';
     $object->set_billing_address_1($set_to);
     $this->assertEquals($set_to, $object->get_billing_address_1());
 }
All Usage Examples Of WC_Order::get_billing_address_1
WC_Order