I too need the hook when a plugin’s options are saved. Somebody please help.
So far I didn’t find a hook for the above. But my job was done by checking the URL in my plugin’s option page.
Whenever the plugin’s settings are successfully updated , the URL is appended by settings-updated=true. So I put the following code in my plugin’s admin file.
$hook = add_menu_page('My Plugin Settings','My Plugin Settings','manage_options','my_plugin_settings','display_plugin_options');
add_action('load-'.$hook,'do_on_my_plugin_settings_save');
function do_on_my_plugin_settings_save()
{
if(isset($_GET['settings-updated']) && $_GET['settings-updated'])
{
//plugin settings have been saved. Here goes your code
}
}
For information on the load-(page) hook, go here