[wp-trac] [WordPress Trac] #25264: The "do_action"s in class-wp-xmlrpc-server.php do not pass in useable arguments.

WordPress Trac noreply at wordpress.org
Fri Aug 7 19:08:30 UTC 2015


#25264: The "do_action"s in class-wp-xmlrpc-server.php do not pass in useable
arguments.
-----------------------------+----------------------
 Reporter:  jtsternberg      |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  XML-RPC          |     Version:  3.6
 Severity:  normal           |  Resolution:  invalid
 Keywords:  dev-feedback     |     Focuses:
-----------------------------+----------------------

Comment (by Viruthagiri):

 Replying to [comment:2 maxcutler]:
 > XML-RPC uses wp_insert_post internally, so you can use the usual
 'save_post' action to do work after it has been saved.
 >
 > Or if you want to manipulate it before it is saved, look at the
 'xmlrpc_prepare_post' filter.

 'wp_insert_post' hooks are not useful here. Because XML-RPC uses
 'get_default_post_to_edit' first.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25264#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list