subject in private message
-
Hello,
I add a private message button to listings by using below function, but in subject field “Testing” does not appear. Am i missing something? Actually, i want to get listing title into the subject field. Any suggestions?
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 ) ;
}add_shortcode( ‘ksam2’, ‘bp_custom_get_send_private_message_link’ );
Best regards
- The topic ‘subject in private message’ is closed to new replies.