@simon I suspect you understand how this plugin is working a bit better than me and just wanted to get your opinion on how I would also overwrite the value for get_comments_number() and not just comments_number().
My theme uses the former to display the number of comments in the header, along with number of shares and views etc. At the moment this is always 0 due to not being compatible with the wp-discourse plugin. I suppose in the short term just overwriting this number when each post is loaded would do, but ideally I’d like Wordpress to be aware of the number of Discourse comments at a lower level.
Count in header
![]()
Count in comments section
This is so that I can determine popular posts and things like that in Wordpress. At the moment Wordpress knows nothing of the Discourse comments if I’m not mistaken.
Would this require rewriting the plugin entirely?
