Title: An interesting easy missing feature (request).
Last modified: August 31, 2016

---

# An interesting easy missing feature (request).

 *  [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * (@lomars)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/an-interesting-easy-missing-feature-request/)
 * Hello,
 * First, thanks for your very effective plugin.
 * I Use your plugin in a woocommerce web-shop.
 * My client just ask me, if it was possible to have :
 * — **EU Vat Number** field in wordpress user edit page.
 * — _(optionaly)_in wordpress users list page.
 * I have tell him that it wasn’t available in the plugin settings, but that i could
   set that for him.
 * So i have set this with action and filter wordpress functions. I can post here
   the code, if you agree, or i can give it to you for a future update of the plugin(
   or i can just keep-it for me).
 * Best regards
 * [https://wordpress.org/plugins/woocommerce-eu-vat-assistant/](https://wordpress.org/plugins/woocommerce-eu-vat-assistant/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Diego](https://wordpress.org/support/users/daigo75/)
 * (@daigo75)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/an-interesting-easy-missing-feature-request/#post-7232352)
 * Thanks for the suggestion. Due to the scope of the EU VAT Assistant, we left 
   out several admin features (the VAT MOSS is almost entirely related to actions
   performed by customers themselves), but contributions are always welcome.
 * If you have the code you used, we can surely review it. Thanks.
 *  Thread Starter [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * (@lomars)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/an-interesting-easy-missing-feature-request/#post-7232370)
 * The EU VAT Number field in wordpress user edit page is useful when admin need
   to access to this field. WooCommerce also display all editable customer data 
   there.
 * The Code :
 *     ```
       add_action( 'show_user_profile', 'add_extra_vat_number' );
       add_action( 'edit_user_profile', 'add_extra_vat_number' );
       function add_extra_vat_number( $user )
       {
           ?>
               // Optional title
               <h3><?php _e("EU Vat assistant", "your_domain_name"); ?></h3>
               <table class="form-table">
                   <tr>
                       <th><label for="facebook_profile"><?php _e("Vat number", "your_domain_name"); ?> </label></th>
                       <td><input type="text" name="vat_number" value="<?php echo esc_attr(get_the_author_meta( 'vat_number', $user->ID )); ?>" class="regular-text" /></td>
                   </tr>
               </table>
               <br />
           <?php
       }
       add_action( 'personal_options_update', 'save_extra_vat_number' );
       add_action( 'edit_user_profile_update', 'save_extra_vat_number' );
       function save_extra_vat_number( $user_id )
       {
           update_user_meta( $user_id,'vat_number', sanitize_text_field( $_POST['vat_number'] ) );
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘An interesting easy missing feature (request).’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-eu-vat-assistant/assets/icon.svg?rev=1057426)
 * [EU VAT Assistant for WooCommerce](https://wordpress.org/plugins/woocommerce-eu-vat-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-eu-vat-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-eu-vat-assistant/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/an-interesting-easy-missing-feature-request/#post-7232370)
 * Status: not a support question