All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: Saving user data to Wordpress database  (Read 2893 times)

0 Members and 1 Guest are viewing this topic.

Offline Bofy

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: Trista
Saving user data to Wordpress database
« on: 11 October 2010, 21:08 »
Hi, everybody!

I am a beginner in coding and I want to write a plugin for my Wordpress blog but I didn't find any documentation.
I want to have a settings page to save my blog users options.

To be more clear:
I can create a page on admin menu,
I can make the plugin to save a global option that can be changed by all users,
I can add and save new fields on users profile page,
but I don't know the correct code for WordPress to save each user's option on admin menu page for my plugin.

I want to give each Logged In user the possibility to save and see the settings page with their individual options saved.

I've tried with get_user_meta, update_user_meta, get_user_option, update_user_option, get_option, update_option with user->ID and nothing worked.
 
I hope here somebody can give me an example of code that I can use for this function.

Thanks!