my-awesome-plugin
my-awesome-plugin copied to clipboard
Saving the settings as serialized array in wp_options
Hello Hardeep Asrani, Nice simple way to integrate React in Theme/Plugin Options page.
Instead of saving each setting as a separate row in the database, I'd like to register a single setting for example 'my_custom_settings' as an array and save all the fields inside it. How can I achieve that in both PHP and React side of things?
Thanks in Advance for your help!
Hey @zamanq,
Sorry I never got a notification for this. It's similar to how you do it with single option. You just save a JSON string inside the option.