# 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:** 7

<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:** [September 18, 2024, 8:33pm UTC](https://meta.discourse.org/t/template-hook-for-discourse-plugin-join-discussion-link-section/323878/7 "2024-09-18T20:33:24Z")

</div>

Yes, I think so. Just so I’m clear, because I’m only at the PHP knowledge level of taking a pattern/example and running with it, I could go about using this filter like so?

```plaintext
function custom_discussion_link( $input ) {  
  ob_start();
  ?>
  <div class="wpdc-join-discussion">
    <div class="custom-wrapper-div">
      <h3>Heading</h3>
      <p>Explanation/context yada yada.</p>
      <?php echo '<a class="wpdc-join-discussion-link" href="' . esc_url_raw( $discourse_permalink ) . '"' . $new_tab . '>' . esc_html( $link_text ) . '</a>'; ?>
    </div>
  </div>
  <?php
  $link_html = ob_get_clean();
  return $link_html;
}
add_filter( 'wpdc_join_discussion_link_html', 'custom_discussion_link' );

```

Hopefully that’s not too hilariously off the mark. 🫣

---

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