[wp-hackers] xmlrpc.php hooks

Joseph Scott joseph at randomnetworks.com
Wed Sep 19 15:57:10 GMT 2007


On Sep 19, 2007, at 2:22 AM, Dan Kuykendall wrote:

> The xmlrpc.php lacks any useful. I wanted to be able to support
> enclosures being defined by blog clients, such as VidBlaster
>
> These two hooks would make this a much easier thing to do.
>
> In function mw_editPost immediately before $this->attach_uploads()
>
> do_action('xmlrpc-mw_editPost', array('postdata'=>$postdata,
> 'content_struct'=>$content_struct));
>
>
> and in function mw_newPost immediately before $this->attach_uploads()
>
> do_action('xmlrpc-mw_newPost', array('postdata'=>$postdata,
> 'content_struct'=>$content_struct));
>
>
> Other hooks may also be useful, but these two would sure help me out


As far as enclosures go, does the patch on this ticket do what you need:

http://trac.wordpress.org/ticket/3405

Hooks are another issue and we certainly could have more of those in  
the XML-RPC code.

--
Joseph Scott
http://joseph.randomnetworks.com/




More information about the wp-hackers mailing list