WC_Order::get_billing_first_name PHP Method

get_billing_first_name() public method

Get billing_first_name.
public get_billing_first_name ( string $context = 'view' ) : string
$context string
return string
    public function get_billing_first_name($context = 'view')
    {
        return $this->get_address_prop('first_name', 'billing', $context);
    }

Usage Example

Beispiel #1
0
 /**
  * Test: get_billing_first_name
  */
 function test_get_billing_first_name()
 {
     $object = new WC_Order();
     $set_to = 'Fred';
     $object->set_billing_first_name($set_to);
     $this->assertEquals($set_to, $object->get_billing_first_name());
 }
All Usage Examples Of WC_Order::get_billing_first_name
WC_Order