[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 Apr 11 14:55:06 UTC 2011
#14283: Add a new action, fired when a post is added via XMLRPC
-----------------------------------+-----------------------------
Reporter: simonwheatley | Owner: westi
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: needs-patch 3.2-early |
-----------------------------------+-----------------------------
Changes (by ericmann):
* keywords: needs-patch, 3.2-early => needs-patch 3.2-early
Comment:
I like the idea, so I'm submitting a patch that adds an action hook to:
- wp.deletePage
- blogger.newPost
- blogger.editPost
- blogger.deletePost
- mw.newPost
- mw.editPost
These are all the relevant post/page methods where this kind of hook makes
sense. The `wp` methods for editing and creating posts just direct to
`mw_editPost()` and `mw_newPost()` anyway, so they'll end up using the
same hooks.
I'm using westi's proposed schema as well:
{{{
do_action( 'xmlrpc_call_success_{method name}', $post_ID, $args );
}}}
We might want to consider adding similar hooks for comments and media
calls, but that would be another ticket ...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14283#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list