[wp-trac] [WordPress Trac] #49918: Issue related to then comment count in edit comment page.

WordPress Trac noreply at wordpress.org
Thu Apr 16 06:40:29 UTC 2020


#49918: Issue related to then comment count in edit comment page.
--------------------------+------------------------------
 Reporter:  sumitsingh    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, thanks for the ticket!

 > I have develop some custom plugin & exclude our comment in comment
 listing using this action(pre_get_comments). comment have been removed but
 comment count still showing all number of comment.may be i am using some
 wrong hook.

 You can use the
 [https://developer.wordpress.org/reference/hooks/wp_count_comments/
 wp_count_comments] filter to change the counts as appropriate.

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


More information about the wp-trac mailing list