Users More atributes (3 posts)

  1. mokola.org
    Posted 3 years ago #

    I would like that users have to enter more attributes that their mail and username.For example like Street adress ,Postacode so on. And i would like to display this info in the admin dashboard when im listing the registered users

    any hints ?


  2. wspencer
    Posted 3 years ago #

    There are a few plugins that do this, but you'll want to search for the following functions to hook into....


    Essentially, you'll need to do the following if you do it yourself....

    1. Write a function that will display additional form fields when editing a user profile. Those form fields will be saved as user_meta

    2. Hook that function into the show_user_profile and edit_user_profile functions

    3. Write a function that updates the user_meta fields using the variables obtained in the form you created in step 1. This will require the use of the user_meta_update() function

    4. Hook that function into the edit_user_profile() and personal_options_update() functions.

    5. Finally, you'll have to edit the display of the users page in the WordPress admin to include columns for the user_meta you want to add.

    Hopefully that gives you a head start!

  3. mokola.org
    Posted 3 years ago #

    thnx for the reply ,but because im stiing in time capsule and i need to finish some other stuff .is there some kind of a guide online or some usefull plugins?

Topic Closed

This topic has been closed to new replies.

About this Topic