WordPress.org

Support

Support » Plugins and Hacks » Hacks » Users More atributes

Users More atributes

Viewing 2 replies - 1 through 2 (of 2 total)
  • There are a few plugins that do this, but you’ll want to search for the following functions to hook into….

    show_user_profile()
    edit_user_profile()
    personal_options_update()
    edit_user_profile_update()
    update_user_meta()

    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!

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Users More atributes’ is closed to new replies.