How to update option field in database on clicking the publish button in customizer

I want to use update_option(‘option_name’, $new_array) to change the database option value when user clicks the publish button in wordpress theme customizer. How to do it?

Read more here:: How to update option field in database on clicking the publish button in customizer

Leave a Reply

Your email address will not be published. Required fields are marked *