[wp-trac] [WordPress Trac] #63928: Add additional fields to the `/wp-json/wp/v2/comments` endpoints
WordPress Trac
noreply at wordpress.org
Thu Sep 4 16:41:50 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: | Focuses: rest-api
---------------------------+------------------------------
Comment (by swissspidy):
> `can_moderate`
Can't this be determined through other means, e.g. `_links` or HTTP
headers?
> `post_details`
Ditto here, can't this be done by embedding the `up` link?
> `i_replied`
There might be a more RESTful approach for this as well. For example,
there's already a `children` link — perhaps we could add a similar link
just for children by the current user.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63928#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list