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

WordPress Trac noreply at wordpress.org
Mon Aug 31 04:25:48 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi @k776, welcome to Trac!

 `wp_newPost()` [source:tags/4.3/src/wp-includes/class-wp-xmlrpc-
 server.php?marks=1463#L1453 does call wp_insert_post()] via
 `_insert_post()`, so all the standard hooks should apply.

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


More information about the wp-trac mailing list