[wp-trac] [WordPress Trac] #40612: Add a hook after updating the settings page option

WordPress Trac noreply at wordpress.org
Sun Apr 30 17:02:45 UTC 2017


#40612: Add a hook after updating the settings page option
--------------------------------+-----------------------------
 Reporter:  dominykasgel        |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  4.7.4
 Severity:  normal              |   Keywords:
  Focuses:  performance         |
--------------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40612>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list