bp_get_send_message_button

Generate the 'Private Message' button for member profile headers.

Description

(string) bp_get_send_message_button(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bp_get_send_message_button' ) ) { 
  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_message_button(); 
  7.  

Defined (1)

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

/bp-messages/bp-messages-template.php  
  1. function bp_get_send_message_button() { 
  2. // Note: 'bp_get_send_message_button' is a legacy filter. Use 
  3. // 'bp_get_send_message_button_args' instead. See #4536. 
  4.  
  5. /** 
  6. * Filters the "Private Message" button for member profile headers. 
  7. * @since 1.8.0 
  8. * @param array $value See {@link BP_Button}. 
  9. */ 
  10. 'id' => 'private_message',  
  11. 'component' => 'messages',  
  12. 'must_be_logged_in' => true,  
  13. 'block_self' => true,  
  14. 'wrapper_id' => 'send-private-message',  
  15. 'link_href' => bp_get_send_private_message_link(),  
  16. 'link_text' => __( 'Private Message', buddypress ),  
  17. 'link_class' => 'send-message',  
  18. ) ) ) 
  19. );