[wp-trac] [WordPress Trac] #14283: Add a new action, fired when a post is added via XMLRPC

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 12 15:23:03 UTC 2010


#14283: Add a new action, fired when a post is added via XMLRPC
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:                 
     Type:  enhancement    |      Status:  new            
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  XML-RPC        |     Version:                 
 Severity:  normal         |    Keywords:  has-patch      
---------------------------+------------------------------------------------
 Currently when you want to manipulate a new post which has been added over
 XMLRPC after the attachments have been added, there is no action to neatly
 hook. (Attachments are assigned to their parent via `$wpdb` queries, and
 no further actions or hooks appear to be triggered after the attachments
 have been added.) This patch suggests a new hook which fires at the end of
 the `mw_newPost` method.

 Not sure about the name "`xmlrpc_post_new_post`" (post new post is meant
 to refer to "after a new post").

 If this patch is acceptable perhaps it's worth adding similar actions to
 `mw_editPost`, 'mw_newPage`, and `mw_editPage`, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14283>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list