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 '/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. return apply_filters( 'bp_get_send_message_button',  
  5.  
  6. /** 
  7. * Filters the "Private Message" button for member profile headers. 
  8. * @since 1.8.0 
  9. * @param array $value See {@link BP_Button}. 
  10. */ 
  11. bp_get_button( apply_filters( 'bp_get_send_message_button_args', array( 
  12. 'id' => 'private_message',  
  13. 'component' => 'messages',  
  14. 'must_be_logged_in' => true,  
  15. 'block_self' => true,  
  16. 'wrapper_id' => 'send-private-message',  
  17. 'link_href' => bp_get_send_private_message_link(),  
  18. 'link_text' => __( 'Private Message', 'buddypress' ),  
  19. 'link_class' => 'send-message',  
  20. ) ) ) 
  21. );