WC_Order::get_billing_address_2 PHP Method

get_billing_address_2() public method

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

Usage Example

Beispiel #1
0
 /**
  * Test: get_billing_address_2
  */
 function test_get_billing_address_2()
 {
     $object = new WC_Order();
     $set_to = 'Rockville';
     $object->set_billing_address_2($set_to);
     $this->assertEquals($set_to, $object->get_billing_address_2());
 }
All Usage Examples Of WC_Order::get_billing_address_2
WC_Order