Revert "Allow filtering formatted shipping address"
This commit is contained in:
parent
6693b44a98
commit
8fbe61aa8b
|
@ -889,9 +889,10 @@ class WC_Order extends WC_Abstract_Order {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_formatted_shipping_address( $empty_content = '' ) {
|
public function get_formatted_shipping_address( $empty_content = '' ) {
|
||||||
$address = apply_filters( 'woocommerce_order_formatted_shipping_address', $this->get_address( 'shipping' ), $this );
|
$address = '';
|
||||||
|
|
||||||
if ( $this->has_shipping_address() ) {
|
if ( $this->has_shipping_address() ) {
|
||||||
|
$address = apply_filters( 'woocommerce_order_formatted_shipping_address', $this->get_address( 'shipping' ), $this );
|
||||||
$address = WC()->countries->get_formatted_address( $address );
|
$address = WC()->countries->get_formatted_address( $address );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue