__( 'Billing address', 'motors' ), 'shipping' => __( 'Shipping address', 'motors' ), ), $customer_id ); } else { $page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Address', 'motors' ) ); $get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array( 'billing' => __( 'Billing address', 'motors' ), ), $customer_id ); } ?>

$title ) : ?>

array( 'title' => __( 'Country', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_country', true ), ), 'first_name' => array( 'title' => __( 'First Name', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_first_name', true ), ), 'last_name' => array( 'title' => __( 'Last Name', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_last_name', true ), ), 'company' => array( 'title' => __( 'Company', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_company', true ), ), 'address' => array( 'title' => __( 'Address', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_address_1', true ) . ' / ' . get_user_meta( $customer_id, $name . '_address_2', true ), ), 'city' => array( 'title' => __( 'City', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_city', true ), ), 'state' => array( 'title' => __( 'State', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_state', true ), ), 'postcode' => array( 'title' => __( 'Postcode', 'motors' ), 'value' => get_user_meta( $customer_id, $name . '_postcode', true ), ), ), $customer_id, $name, ); if ( ! $address ) { esc_html_e( 'You have not set up this type of address yet.', 'motors' ); } else { $output = ''; } $output .= ''; $output .= ''; foreach ( $address as $value ) { $placeholder = ' '; if ( ! empty( $value['value'] ) ) { $placeholder = ''; } $output .= ''; } $output .= ''; $output .= '
' . esc_html( $value['title'] ) . '' . $placeholder . esc_html( $value['value'] ) . '
'; echo wp_kses_post( apply_filters( 'stm_balance_tags', $output ) ); /** * Used to output content after core address fields. * * @param string $name Address type. * @since 8.7.0 */ do_action( 'woocommerce_my_account_after_my_address', $name ); ?>