add_action( ‘bbp_theme_after_reply_author_details’, function() {
$user_nicename = get_the_author_meta(‘user_nicename’);
if( ! $user_nicename || ! fep_current_user_can(‘send_new_message_to’, $user_nicename ) ){
return ”;
}
?>
<div class=”fep-bp-send-message”><?php echo do_shortcode( “[fep_shortcode_message_to class=’fep-bp-send-message-a’]”); ?></div>
<?php
});
I put this code into the functions.php, just like you wrote in another answer here in the support forum. It works fine, I just want to change the link’s name from “Contact” to something else.
Thank you in advance.