# WP Discourse: custom filters for discourse\_replies\_html and discourse\_no\_replies\_html

**URL:** <https://meta.discourse.org/t/wp-discourse-custom-filters-for-discourse-replies-html-and-discourse-no-replies-html/106306>\
**Category:** WordPress\
**Created:** [11.Январь.2019 18:42:53 UTC](https://meta.discourse.org/t/wp-discourse-custom-filters-for-discourse-replies-html-and-discourse-no-replies-html/106306 "2019-01-11T18:42:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Kayla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kayla/32/128523_2.png) [@Kayla](https://meta.discourse.org/u/Kayla)\
**Post date:** [12.Январь.2019 02:45:26 UTC](https://meta.discourse.org/t/wp-discourse-custom-filters-for-discourse-replies-html-and-discourse-no-replies-html/106306/9 "2019-01-12T02:45:26Z")

</div>

I went to look at the error logs available in our wpengine account, and I did see some in regards to my template file, but I think it’s from when I did that wonky modification with the `( $input, $post_id )`:

```plaintext
[php7:error] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function cosmos_custom_discourse_replies(), 1 passed and exactly 2 expected in /nas/content/live/theoryofe/wp-content/mu-plugins/cosmos-discourse-templates.php:9

```

Line 9 is `function cosmos_custom_discourse_replies( $input ) {` , and I got a similar error referring to the line `function cosmos_custom_discourse_no_replies( $input ) {`.

I didn’t see anything more recent than these referring to the templates, so I’ll do some more work as you suggest and see if I can find anything helpful. Thanks!

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-custom-filters-for-discourse-replies-html-and-discourse-no-replies-html/106306)._
