Title: predefined fields
Last modified: October 15, 2023

---

# predefined fields

 *  Resolved [whatafilm06](https://wordpress.org/support/users/whatafilm06/)
 * (@whatafilm06)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/predefined-fields/)
 * Hello !
 * I want to add some fields on the account page, like phone number, address, postal
   code, city..
   I have found this snippet : <?php /** * Add pre-defined fields to
   the main Account tab under the “E-mail Address” field. * Add this code to the
   file functions.php in the active theme directory. */function um_account_tab_general_fields(
   $args, $shortcode_args ) { // Fields Meta Keys. $args .= ‘,birth_date’; $args.
   = ‘,country’; $args .= ‘,languages’; return $args;}add_filter( ‘um_account_tab_general_fields’,‘
   um_account_tab_general_fields’, 10, 2 );
 * And it works great for the phone number since it’s a predefined field on UM. 
   But address, postal code and city are not predefined fields in UM, so I think
   I have to change some things in the snippet. (Of course, I used the same metas
   as my registration form)
   Thank you very much for your help

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

 *  Thread Starter [whatafilm06](https://wordpress.org/support/users/whatafilm06/)
 * (@whatafilm06)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/predefined-fields/#post-17125381)
 * (Of course, in my case, I used this snippet :
 * <?php
 * /**
    - Add pre-defined fields to the main Account tab under the “E-mail Address” 
      field.
    - Add this code to the file functions.php in the active theme directory.
      */function
      um_account_tab_general_fields( $args, $shortcode_args ) { // Fields Meta Keys.
      $args .= ‘,adresse’;$args .= ‘,cp’;$args .= ‘,ville’;$args .= ‘,phone_number’;
      return $args;}add_filter( ‘um_account_tab_general_fields’, ‘um_account_tab_general_fields’,
      10, 2 );
 *  Plugin Support [Yurii](https://wordpress.org/support/users/yuriinalivaiko/)
 * (@yuriinalivaiko)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/predefined-fields/#post-17134080)
 * Hello [@whatafilm06](https://wordpress.org/support/users/whatafilm06/)
 * Solution described in the article [Extend the Account page with Ultimate Member pre-defined fields](https://docs.ultimatemember.com/article/1770-extend-the-account-page-with-ultimate-member-pre-defined-fields)
   works for the predefined fields only.
 * For custom fields you can use the solution described in articles [Extend Ultimate Member Account page with custom tabs/content](https://docs.ultimatemember.com/article/65-extend-ultimate-member-account-page-with-custom-tabs-content)
   and [How to display custom fields in Account](https://docs.ultimatemember.com/article/1504-how-to-display-custom-fields-in-account).
 * Or use the free extension [Ultimate Member – Account tabs](https://github.com/umdevelopera/um-account-tabs)
   to put profile form fields into the custom account tab.
 * Regards
 *  Plugin Support [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * (@andrewshu)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/predefined-fields/#post-17154875)
 * Hi [@whatafilm06](https://wordpress.org/support/users/whatafilm06/)
 * This thread has been inactive for a while so we’re going to go ahead and mark
   it Resolved.
 * Please feel free to re-open this thread if any other questions come up and we’d
   be happy to help. 🙂
 * Regards

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

The topic ‘predefined fields’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [andrewshu](https://wordpress.org/support/users/andrewshu/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/predefined-fields/#post-17154875)
 * Status: resolved