[wp-trac] [WordPress Trac] #40352: WP REST API, Comments Not Triggering 'comment_post'

WordPress Trac noreply at wordpress.org
Mon Jun 30 16:49:16 UTC 2025


#40352: WP REST API, Comments Not Triggering 'comment_post'
--------------------------+------------------------------
 Reporter:  stickypixel   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  4.7
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  dev-feedback  |     Focuses:  rest-api
--------------------------+------------------------------
Changes (by callumbw95):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Hi All,
 I have done a bit of digging into this, and I came across this
 [https://github.com/WP-API/WP-API/issues/2707| GitHub Issue] that revolved
 around the same issue. Looking at the last comment, it appears that this
 was an intentional decision, as `wp_new_comment()` does a lot of unwanted
 functionality in the instance of the REST API. As of such this
 functionality is unlikely to change, and I am going to mark this is
 `wontfix`. However if you have anything else to add to the discussion
 please reopen the ticket. 😃

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


More information about the wp-trac mailing list