WC_Order::get_billing_company PHP Method

get_billing_company() public method

Get billing_company.
public get_billing_company ( string $context = 'view' ) : string
$context string
return string
    public function get_billing_company($context = 'view')
    {
        return $this->get_address_prop('company', 'billing', $context);
    }

Usage Example

コード例 #1
0
ファイル: crud.php プロジェクト: woocommerce/woocommerce
 /**
  * Test: get_billing_company
  */
 function test_get_billing_company()
 {
     $object = new WC_Order();
     $set_to = 'Bedrock Ltd.';
     $object->set_billing_company($set_to);
     $this->assertEquals($set_to, $object->get_billing_company());
 }
All Usage Examples Of WC_Order::get_billing_company
WC_Order