• Resolved thedesignpeople

    (@thedesignpeople)


    Hi,

    I’d like to be able to add a field (telephone) to the account page on the first page along with the current name and email fields.

    Is this possible?

    Thanks!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @thedesignpeople

    Add this code snippet to your child-theme functions.php file
    or use the “Code Snippets” plugin.

    add_filter( 'um_account_tab_general_fields', 'my_um_account_mobile', 10, 2 );
    
    function my_um_account_mobile( $args, $shortcode_args ) {
    
        $args .= ',phone_number,mobile_number';
        return $args;
    }
    Thread Starter thedesignpeople

    (@thedesignpeople)

    That’s great! Thank you!

    I’m a bit confused why there is both an account page AND a profile page – both have name dets seemingly populated from the registration/profile forms but account section has email and password and profile section has photo and description. And the phone number from the registration doesn’t populate the account section…Seems like there should be only one or the other (profile or account page)?

    If the email/username/first/last names can be populated from the registration form, do you know if there’s a way to get the phone to do the same thing and we can then drop the profile section entirely?

    Thanks again!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @thedesignpeople

    Have you tried the above code snippet to add mobile/phone number field?

    UM Account has all the user preferences and the Profile form has all fields for public view.

    Regards,

    Thread Starter thedesignpeople

    (@thedesignpeople)

    Yep i had it but I realised that I hadn’t changed the meta key on the form. Works now! Brilliant thanks!!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add field to account section (NOT profile)’ is closed to new replies.