Automattic\WooCommerce\Internal\Admin\Orders

ListTable::column_shipping_address()publicWC 1.0

Renders order shipping information.

{} Это метод класса: ListTable{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ListTable = new ListTable();
$ListTable->column_shipping_address( $order ): void;
$order(WC_Order) (обязательный)
The order object for the current row.

Код ListTable::column_shipping_address() WC 6.8.0

public function column_shipping_address( WC_Order $order ): void {
	$address = $order->get_formatted_shipping_address();

	if ( $address ) {
		echo '<a target="_blank" href="' . esc_url( $order->get_shipping_address_map_url() ) . '">' . esc_html( preg_replace( '#<br\s*/?>#i', ', ', $address ) ) . '</a>';
		if ( $order->get_shipping_method() ) {
			/* translators: %s: shipping method */
			echo '<span class="description">' . sprintf( esc_html__( 'via %s', 'woocommerce' ), esc_html( $order->get_shipping_method() ) ) . '</span>';
		}
	} else {
		echo '&ndash;';
	}
}