Automattic\WooCommerce\Internal\Admin\Orders

ListTable::render_billing_address_column()publicWC 1.0

Renders order billing information.

Method of the class: ListTable{}

No Hooks.

Return

null. Nothing (null).

Usage

$ListTable = new ListTable();
$ListTable->render_billing_address_column( $order ): void;
$order(WC_Order) (required)
The order object for the current row.

ListTable::render_billing_address_column() code WC 8.7.0

public function render_billing_address_column( 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;';
	}
}