Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Last active November 23, 2024 12:21
Show Gist options
  • Select an option

  • Save yuriinalivaiko/3ffd7ee10dd042265056c0cf450e51b1 to your computer and use it in GitHub Desktop.

Select an option

Save yuriinalivaiko/3ffd7ee10dd042265056c0cf450e51b1 to your computer and use it in GitHub Desktop.
This code snippet adds fields to the main Account tab.
<?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 );
@polmonta
Copy link

polmonta commented Aug 9, 2024

Text boxes are not being displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment