How to use the settings API to set multidimensional arrays

Look at your validation function (the one referenced by your register_setting call). Whatever it returns replaces the entire setting in the database. So if it’s not getting the setting and then altering it and returning the entire setting, you’ll lose the data that you didn’t have it return.

Leave a Comment