WC_Order::get_billing_last_name PHP Méthode

get_billing_last_name() public méthode

Get billing_last_name.
public get_billing_last_name ( string $context = 'view' ) : string
$context string
Résultat string
    public function get_billing_last_name($context = 'view')
    {
        return $this->get_address_prop('last_name', 'billing', $context);
    }

Usage Example

Exemple #1
0
 /**
  * Test: get_billing_last_name
  */
 function test_get_billing_last_name()
 {
     $object = new WC_Order();
     $set_to = 'Flintstone';
     $object->set_billing_last_name($set_to);
     $this->assertEquals($set_to, $object->get_billing_last_name());
 }
All Usage Examples Of WC_Order::get_billing_last_name
WC_Order