WC_Admin_List_Table_Orders::render_shipping_address_column()
Render columm: shipping_address.
Contents
Description Description
Source Source
File: includes/admin/list-tables/class-wc-admin-list-table-orders.php
protected function render_shipping_address_column() { $address = $this->object->get_formatted_shipping_address(); if ( $address ) { echo '<a target="_blank" href="' . esc_url( $this->object->get_shipping_address_map_url() ) . '">' . esc_html( preg_replace( '#<br\s*/?>#i', ', ', $address ) ) . '</a>'; if ( $this->object->get_shipping_method() ) { /* translators: %s: shipping method */ echo '<span class="description">' . sprintf( __( 'via %s', 'woocommerce' ), esc_html( $this->object->get_shipping_method() ) ) . '</span>'; // WPCS: XSS ok. } } else { echo '–'; } }