bp_get_send_private_message_link

Generate the URL for the Private Message link in member profile headers.

Description

(bool|string) bp_get_send_private_message_link(); 

Returns (bool|string)

False on failure, otherwise the URL.


Usage

  1. if ( !function_exists( 'bp_get_send_private_message_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-messages/bp-messages-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_send_private_message_link(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-messages/bp-messages-template.php  
  1. function bp_get_send_private_message_link() { 
  2.  
  3. if ( bp_is_my_profile() || ! is_user_logged_in() ) { 
  4. return false; 
  5.  
  6. /** 
  7. * Filters the URL for the Private Message link in member profile headers. 
  8. * @since 1.2.10 
  9. * @param string $value URL for the Private Message link in member profile headers. 
  10. */