#40612 closed enhancement (worksforme)
Add a hook after updating the settings page option
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7.4 |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | Cc: |
Description
I couldn't find a proper way how to hook into WP after updating/saving the settings page option. For example: I have a custom settings page built with register_setting() function and I want to call a custom function once the settings page option has been updated, but there's no action. I think it would be very useful to have this hook.
In my patch, the 'settings_updated' action is triggered right after the settings page option has been updated.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thisi is a patch for options.php. Includes a hook after saving the settings page option.