Automattic\WooCommerce\Internal\Admin\Orders

ListTable::column_billing_address()publicWC 1.0

Renders order billing information.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код ListTable::column_billing_address() WC 6.8.0

public function column_billing_address( WC_Order $order ): void {
	$address = $order->get_formatted_billing_address();

	if ( $address ) {
		echo esc_html( preg_replace( '#<br\s*/?>#i', ', ', $address ) );

		if ( $order->get_payment_method() ) {
			/* translators: %s: payment method */
			echo '<span class="description">' . sprintf( esc_html__( 'via %s', 'woocommerce' ), esc_html( $order->get_payment_method_title() ) ) . '</span>';
		}
	} else {
		echo '&ndash;';
	}
}