# Template hook for Discourse Plugin "Join Discussion Link" section?

**URL:** <https://meta.discourse.org/t/template-hook-for-discourse-plugin-join-discussion-link-section/323878>\
**Category:** WordPress\
**Created:** [August 28, 2024, 9:52pm UTC](https://meta.discourse.org/t/template-hook-for-discourse-plugin-join-discussion-link-section/323878 "2024-08-28T21:52:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [September 18, 2024, 9:43am UTC](https://meta.discourse.org/t/template-hook-for-discourse-plugin-join-discussion-link-section/323878/6 "2024-09-18T09:43:59Z")

</div>

@Kayla It will soon be time to cut another version of the plugin and I want to be sure I’m serving your case. I’m thinking of adding a `wpdc_join_discussion_link_html` filter [here](https://github.com/discourse/wp-discourse/blob/f6e6c5057e94513fed85059616072b0e85534416/lib/discourse-comment-formatter.php#L216)

```php
$link_html = '<div class="wpdc-join-discussion"><a class="wpdc-join-discussion-link" href="' . esc_url_raw( $discourse_permalink ) . '"' . $new_tab . '>' . esc_html( $link_text ) . '</a></div>';
$link_html = apply_filters( 'wpdc_join_discussion_link_html', $link_html, $comments_count, $post_id );
return $link_html;

```

This would perform the same role as the `discourse_replies_html` filter, but for the link html.

Does that work for you?

---

_[View the full topic](https://meta.discourse.org/t/template-hook-for-discourse-plugin-join-discussion-link-section/323878)._
