[wp-trac] [WordPress Trac] #63928: Add additional fields to the `/wp-json/wp/v2/comments` endpoints

WordPress Trac noreply at wordpress.org
Mon Sep 8 03:13:07 UTC 2025


#63928: Add additional fields to the `/wp-json/wp/v2/comments` endpoints
--------------------------------------+------------------------------
 Reporter:  hannahtinkler             |       Owner:  hannahtinkler
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+------------------------------

Comment (by crazytonyli):

 Hi @swissspidy, just for a little bit of background info, I'm one of the
 developers working on the WordPress mobile app. I asked Hannah to help add
 these fields to the REST API in core.

 Regarding the `post_details` field, what the app needs is the post title,
 so that we can show a UI like: "<Someone> posted a comment on <Post
 title>: <Comment content>". We can fetch any post detail information in a
 separate HTTP request, but this would require one request for each
 comment, which isn't very performant.

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


More information about the wp-trac mailing list