Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Build a WordPress Plugin Connecting WordPress Plugins with 3rd Party APIs Getting and Storing a JSON Feed

Simon Chercka
Simon Chercka
23,809 Points

Next level: how to have multiple users in options table?

This course shows how to add and hold one user at a time, But what if I want to store multiple users, not just activate and use one at a time?

  1. Would I have to create my own db table to store these, or should/could I still use the options table?

  2. Obviously many of the calls would have to change, but what would the structure look like in the options table, since I'm assuming that is where to put it. Instead of just update_option($array) would I be updating the option field with an object, a multidimensional array? Or would each user be added as it's own option in the table?

Thanks!