bbpress private message
-
Hey,
I need a button to send a private message to a user. My thoughts:
I have here a function from Robin to show the first and lastname
add_action (‘bbp_theme_after_reply_author_details’, ‘rew_display_user_details’, 20);function rew_display_user_details () {
$rew_id1=bbp_get_reply_author_id() ;
$rew_id2 = get_userdata( bbp_get_reply_author_id());
echo ‘<div class = “rew_display_user_details”>’ ;
echo $rew_id2->first_name ;
if ( bbp_is_user_keymaster() ) echo ‘ ‘.$rew_id2->last_name ;
echo ‘</div>’ ;
}?>
I have the Plugin front end pm. In the documentation stand it is possible with that
Where must a paste it in the function?
regards
- You must be logged in to reply to this topic.