How is the data stored in the database?

This is a serialized array. PHP is able to read them as if they were regular arrays (or objects, in some cases) by using the serialize and unserialize functions (WordPress does this for you).

All you need with WordPress to do is use get_option (or comparable WordPress function calls to retrieve data) and use the array/object as normal.

I would recommend you avoid editing the data raw in the database, since can really mess things up (I know from experience 🙂 ).

Leave a Comment