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?
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. ![]()