WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#41105 new enhancement

Fire action hook after updating option group.

Reported by: mdifelice Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Options, Meta APIs Keywords: has-patch
Focuses: Cc:
PR Number:

Description

This suggestion affects the Settings API. There are hooks that fire after updating a single option, but not when a group of options is updated. Options updated via the Settings API are handled by /wp-admin/options.php, which after updating them does a redirection to the previous page, not firing any hook beside the shutdown action hook. In fact, the shutdown hook could be used for the same purpose but it would require some more extra checks.

Basically the hook would allow to perform some action that is required after all options in that group are updated.

Attachments (1)

options.diff (397 bytes) - added by mdifelice 2 years ago.
Possible place to add the proposed action hook.

Download all attachments as: .zip

Change History (2)

@mdifelice
2 years ago

Possible place to add the proposed action hook.

#1 @mdifelice
2 years ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.