I’m trying to understand how you’ve set this up. Please correct me if I’m wrong:
- You use Publishing and DiscourseConnect feature sets of the plugin.
- You do (not) have “Enable Discourse Comments” enabled (?: this is unclear)
- You have the “Sync Comment Data” webhook enabled.
- You have added a custom button at the bottom of the Wordpress posts linked to Discourse that displays the count of Discourse posts on a topic. It uses the
get_comments_numberWordpress filter. - You want the count to be updated when posts in the linked topic are deleted.
Is that right? What else have you set up (or not)?