We need to create a new comments-count endpoint (or similar) that will return the number of comments for each status (all, approved, unapproved, spam, and trash). Its needed in order to display these counts next to status labels in comment navigation component.

We need to create a new
comments-countendpoint (or similar) that will return the number of comments for each status (all, approved, unapproved, spam, and trash). Its needed in order to display these counts next to status labels in comment navigation component.