WC_Admin_List_Table_Orders::render_billing_address_column()
Render columm: billing_address.
Contents
Description Description
Source Source
File: includes/admin/list-tables/class-wc-admin-list-table-orders.php
protected function render_billing_address_column() {
$address = $this->object->get_formatted_billing_address();
if ( $address ) {
echo esc_html( preg_replace( '#<br\s*/?>#i', ', ', $address ) );
if ( $this->object->get_payment_method() ) {
/* translators: %s: payment method */
echo '<span class="description">' . sprintf( __( 'via %s', 'woocommerce' ), esc_html( $this->object->get_payment_method_title() ) ) . '</span>'; // WPCS: XSS ok.
}
} else {
echo '–';
}
}