woocommerce/templates/emails/plain/email-addresses.php

21 lines
631 B
PHP
Raw Normal View History

<?php
/**
* Email Addresses (plain)
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 2.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
echo "\n" . strtoupper( __( 'Billing address', 'woocommerce' ) ) . "\n\n";
echo preg_replace( '#<br\s*/?>#i', "\n", $order->get_formatted_billing_address() ) . "\n";
if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) {
echo "\n" . strtoupper( __( 'Shipping address', 'woocommerce' ) ) . "\n\n";
echo preg_replace( '#<br\s*/?>#i', "\n\t", $shipping ) . "\n";
}