[wp-trac] [WordPress Trac] #33618: Trigger publish_post in XMLRPC API wp_newPost function

WordPress Trac noreply at wordpress.org
Sun Aug 30 23:32:50 UTC 2015


#33618: Trigger publish_post in XMLRPC API wp_newPost function
--------------------------+-----------------------------
 Reporter:  k776          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Currently, the only action triggered when creating a post via the XMLRPC
 API is:

 do_action( 'xmlrpc_call', 'wp.newPost' );

 However, a lot of plugins depend on publish_post or wp_insert_post actions
 being triggered with the new post id.

 What is the rationale behind not triggering these via API post creations
 as it seems like a bug/oversight?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33618>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list