[wp-trac] [WordPress Trac] #59908: There should be an action fired after a Widget is added or updated
WordPress Trac
noreply at wordpress.org
Tue Nov 14 17:14:12 UTC 2023
#59908: There should be an action fired after a Widget is added or updated
-------------------------+-----------------------------
Reporter: MadtownLems | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
I don't believe there's currently an action fired after a Widget is added
or updated in the normal/traditional means (Appearance -> Widgets). There
is delete_widget, but not a similar update_widget.
In googling to find out what action to use, I found lots of people trying
to do exactly the same thing I am (with no luck): Clearing page caches
after a widget has been added or updated.
A simple do_action( 'update_widget ) type of action would benefit a lot of
users.
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59908>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list