Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: subject in private message

@acengiz

Participant

Hi again, do i need to change anything in below function?

function bp_custom_get_send_private_message_link() {
$author = get_the_author();
$subject="Testing";
  
$compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?';
if($author)
$compose_url.=('r=' . get_the_author());
if($subject)
$compose_url.=('&subject='. $subject);
  
return wp_nonce_url( $compose_url ) ;
}
Skip to toolbar