Hook function to submit_button when saving options
-
Hi everyone!
I need some help here! I’m working on a plugin that is intended to save a manifest.json file in the root of WordPress installation. This plugin has a settings page in where the administrator can setup some values for the manifest.json such as the background color, theme color, short name, fcm sender Id, etc.
All those values are saved correctly in the database as an option in the wp_options table. The thing is, I have another function in my plugin that has to be fired once those values are successfuly saved in the database in order to generate the manifest.json. I thought that this could be done with some hook like added_options or updated_options, but neither of those seems to work.Is there another way to hook my function to the submit button so it gets fired once the submit button is clicked or even better is there a way to fire the function once the options are saved to database?
Any advice will be helpful!
- The topic ‘Hook function to submit_button when saving options’ is closed to new replies.