Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $load_address = 'billing';
- $address = WC()->countries->get_address_fields(get_user_meta(get_current_user_id(), $load_address . '_country', true), $load_address . '_');
- ?>
- <form method="post">
- <h3><?php echo apply_filters('woocommerce_my_account_edit_address_title', $page_title); ?></h3>
- <?php do_action("woocommerce_before_edit_address_form_{$load_address}"); ?>
- <?php foreach ($address as $key => $field) : ?>
- <?php woocommerce_form_field($key, $field, !empty($_POST[$key]) ? wc_clean($_POST[$key]) : $field['value'] ); ?>
- <?php endforeach; ?>
- <?php do_action("woocommerce_after_edit_address_form_{$load_address}"); ?>
- <p>
- <input type="submit" class="button" name="save_address" value="<?php esc_attr_e('Save Address', 'woocommerce'); ?>" />
- <?php wp_nonce_field('woocommerce-edit_address'); ?>
- <input type="hidden" name="action" value="edit_address" />
- </p>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement