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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Text boxes are not being displayed.