• Resolved abdullahalsalim

    (@abdullahalsalim)


    Dear Support could you please explain how can we add the code to our website

    add_action("user_register","um_012022_generate_unique_account_id");
    function um_012022_generate_unique_account_id( $user_id ) {
       $unique_account_id = 'C-' . str_pad( $user_id, 5, '0', STR_PAD_LEFT );
       update_user_meta( $user_id, "um_unique_account_id", $unique_account_id );
    }

    i do not know how can i add it i’m not expert

    thank you

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

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to Generate a Unique Account ID’ is closed to new replies.