[wp-trac] [WordPress Trac] #17109: Add post-success action hooks to edit/create/delete calls.
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 3 16:38:09 UTC 2012
#17109: Add post-success action hooks to edit/create/delete calls.
-------------------------------------+------------------------------
Reporter: ericmann | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Comment (by ericmann):
Replying to [comment:6 josephscott]:
> Any reason not to make these all filters? Seems strange to allow for
filtering the return value of some methods, but not others.
It was based on return values. For example, the functions that return
data (i.e. IDs) are using filters on the IDs. The functions that return
bools (i.e. success/failure) fire an action instead.
My intention was to only use filters when the result of the filter would
be returned by the function and use actions elsewhere to still allow devs
to hook in to the function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17109#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list