WC_Order::get_shipping_country PHP Method

get_shipping_country() public method

Get shipping_country.
public get_shipping_country ( string $context = 'view' ) : string
$context string
return string
    public function get_shipping_country($context = 'view')
    {
        return $this->get_address_prop('country', 'shipping', $context);
    }

Usage Example

Beispiel #1
0
 /**
  * Test: get_shipping_country
  */
 function test_get_shipping_country()
 {
     $object = new WC_Order();
     $set_to = 'US';
     $object->set_shipping_country($set_to);
     $this->assertEquals($set_to, $object->get_shipping_country());
 }
All Usage Examples Of WC_Order::get_shipping_country
WC_Order