LLMS_Order::get_customer_full_address()
Retrieve the customer’s full billing address
Return Return
(string)
Source Source
File: includes/models/model.llms.order.php
public function get_customer_full_address() {
$billing_address_1 = $this->get( 'billing_address_1' );
if ( empty( $billing_address_1 ) ) {
return '';
}
$address = array(
trim( $billing_address_1 . ' ' . $this->get( 'billing_address_2' ) ),
);
$address[] = trim( $this->get( 'billing_city' ) . ' ' . $this->get( 'billing_state' ) );
$address[] = $this->get( 'billing_zip' );
$address[] = llms_get_country_name( $this->get( 'billing_country' ) );
return implode( ', ', array_filter( $address ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |