Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,033 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!