0

I write a wedding blog and would like to allow the subscribers to login and be able to create and save their own wedding guest lists. The data they store, should be retrievable on future login to the site.

I would like to know if this functionality would be possible and how it can be done.

0

you can store user data in user meta fields which you can get and display to the user. use update_user_meta(); function to store user data and use get_user_meta(); to retrieve stored user data.

// you need to get user id and replace meta_key with yours
$user_data = 'some user lists data';
update_user_meta($user_id, 'meta_key', $user_data);

// now get user data
$stored_user_data = get_user_meta($user_id, 'meta_key', true);
  • Thanks, however I do not know coding, where do I need to place this piece of code to enable this functionality? – Divya Sep 11 '13 at 2:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.