Last active
November 23, 2024 12:21
-
-
Save yuriinalivaiko/3ffd7ee10dd042265056c0cf450e51b1 to your computer and use it in GitHub Desktop.
This code snippet adds fields to the main Account tab.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add pre-defined fields to the main Account tab. | |
| 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 ); |
@BlackStar1991 the meta keys refer to the "column_headings" such as ID, user_name in the two tables "wp_users" and wp_usermeta". We define our own meta keys when creating a form with Ultimate Member. However, in my case, using these meta keys didn't work. I tried in many ways and could remove some of the fields from the default form but couldn't add a new field.
Text boxes are not being displayed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, Could you add all list of this meta keys ? Or where is this list?