Skip to main content
8 events
when toggle format what by license comment
S Jun 27, 2023 at 20:47 history suggested amirrouzegari CC BY-SA 4.0
print_r(comment_ids); change to print_r($comment_ids);
Jun 26, 2023 at 6:53 review Suggested edits
S Jun 27, 2023 at 20:47
May 24, 2014 at 15:53 vote accept Jeevan
May 22, 2014 at 5:28 vote accept Jeevan
May 22, 2014 at 5:28
May 22, 2014 at 5:23 comment added ksr89 You can use orderby value as comment_date_gmt for get latest comment at top. After getting its 0 element you get latest comment. Then comment->comment_author will give you author name for latest comment :)
May 22, 2014 at 5:15 comment added Jeevan I need to get comment author name when ever a new comment is generated for a particular post, although may be I could get the same from get_comments() function if I could access last comment, means highest comment_ID for particular post_id THANKS
May 22, 2014 at 4:42 history edited ksr89 CC BY-SA 3.0
added 228 characters in body
May 22, 2014 at 4:37 history answered ksr89 CC BY-SA 3.0