Add a new action, fired when a post is added via XMLRPC
|Reported by:||simonwheatley||Owned by:||westi|
|Severity:||normal||Keywords:||3.2-early has-patch commit|
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.
Change History (9)
- Keywords needs-patch 3.2-early added; has-patch removed
- Owner set to westi
- Status changed from new to accepted
- Keywords changed from needs-patch, 3.2-early to needs-patch 3.2-early