Is there any specific hook that fires when admin setting is saved. I have cached some data from admin back-end setting menu. Now i want to the delete the caching when setting saved in admin menu. Thanks in advance for help.
Leave a Reply
You must be logged in to post a comment.
There is the filter
'pre_update_option_' . $option
. You have to know the option name. Options can be updated from front-end too, so WordPress doesnât make a difference here.Then there is an action:
'update_option'
, you get the arguments$option
,$oldvalue
and$_newvalue
.Finally, if the update went successful, you get two further actions:
See the source code of
update_option()
for details.