WC_Order::get_shipping_first_name PHP Method

get_shipping_first_name() public method

Get shipping_first_name.
public get_shipping_first_name ( string $context = 'view' ) : string
$context string
return string
    public function get_shipping_first_name($context = 'view')
    {
        return $this->get_address_prop('first_name', 'shipping', $context);
    }

Usage Example

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