# Should comments webhook update count after deleting posts/comments?

**URL:** <https://meta.discourse.org/t/should-comments-webhook-update-count-after-deleting-posts-comments/336621>\
**Category:** WordPress\
**Created:** [November 17, 2024, 6:23pm UTC](https://meta.discourse.org/t/should-comments-webhook-update-count-after-deleting-posts-comments/336621 "2024-11-17T18:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Firsh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firsh/32/454861_2.png) [@Firsh](https://meta.discourse.org/u/Firsh)\
**Post date:** [November 17, 2024, 6:23pm UTC](https://meta.discourse.org/t/should-comments-webhook-update-count-after-deleting-posts-comments/336621/1 "2024-11-17T18:23:22Z")

</div>

I’m using DC SSO where users are managed by WP. The forum acts as a way to comment on posts, but these posts are only visible in the forum.

I have a custom “Comment” button in WP that turns into “x comments” when there are coments in the linked topic. (It uses normal WP `get_comments_number` that the DC plugin hooks into.)

It works well, but I’ve just tried deleting a post and the count remains the same. The UI in the WP plugin recommends:  
`Events: "Post is created", "Post is updated".`  
Based on that, it is perhaps not supported? To decrease or recalculate post/comment count.

---

_[View the full topic](https://meta.discourse.org/t/should-comments-webhook-update-count-after-deleting-posts-comments/336621)._
