• I am using this code to add a custom field to the account page but when I try to change the phone number, it doesn’t update on the wordpress\users.

    https://prntscr.com/hxvrdb

    The first and last name edits are successful though.

    Please help!!`

    add_action(‘um_after_account_general’, ‘show_extra_fields’, 100);
    function show_extra_fields() {

    global $ultimatemember;
    $id = um_user(‘ID’);
    $output = ”;

    $names = [ ‘phone_number’];

    $fields = [];
    foreach( $names as $name )
    $fields[ $name ] = $ultimatemember->builtin->get_specific_field( $name );

    $fields = apply_filters( ‘um_account_secure_fields’, $fields, $id );

    foreach( $fields as $key => $data )
    $output .= $ultimatemember->fields->edit_field( $key, $data );

    echo $output;
    }

    ?>`

    The page I need help with: [log in to see the link]

  • The topic ‘Phone Number in Account is not update’ is closed to new replies.