Add per-user options page to dashboard.
-
Hello. I cannot seem to find instructions for this in the Codex or on the forums…
What I want to do is add an options page to the dashboard, that is visible to all users.
This, I have succeeded in doing, using the settings API.
However, I do not want the saved settings to be stored in wp_options in the way that an administrator’s control panel would. I want the settings to be stored in usermeta, on a per-user basis.
For example, if the settings page has the following two checkboxes:
[ ] Likes Cats
[ ] Likes DogsI want a successful save of the settings on that page to write the data to usermeta, so that each user can have their own cat/dog preferences.
I cannot seem to find anything telling me how to make the Setting API do this.
In short, How do I use the Setting API to save settings to usermeta for the current user?
Thank you for your time ??
- The topic ‘Add per-user options page to dashboard.’ is closed to new replies.