[wp-trac] [WordPress Trac] #17109: Add post-success action hooks to edit/create/delete calls.

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 11 21:23:18 UTC 2011


#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:2 josephscott]:
 > In order to potentially modify the data before returning it shouldn't we
 be filtering instead and returning the filter variable?

 That's a good question.  But I would say no.

 For many of these calls, the only thing returned at this stage is the ID
 or a boolean representing whether or not the call succeeded.  Adding a
 filter doesn't add any value, but adding an action hook provides the user
 with a way to further manipulate data or act on the content of a
 successful call after it's completed.  But there's no further output at
 this stage to be filtered.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17109#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list