[wp-trac] [WordPress Trac] #50771: WP_Comment protected $children
WordPress Trac
noreply at wordpress.org
Sun Jul 26 10:13:48 UTC 2020
#50771: WP_Comment protected $children
-------------------------+------------------------------
Reporter: Tkama | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 5.4.2
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Comments
Comment:
Thanks for the ticket!
Replying to [ticket:50771 Tkama]:
> Now I want to use this nested data, but I can't access it.
You should be able to access it with the
[https://developer.wordpress.org/reference/classes/wp_comment/get_children/
WP_Comment::get_children()] method:
https://wordpress.stackexchange.com/questions/301190/how-to-check-if-a
-comment-has-replies/356389#356389
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50771#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list