bp_get_message_get_recipient_usernames

Get the recipient usernames for prefilling the 'To' field on the Compose screen.

Description

(string) bp_get_message_get_recipient_usernames(); 

Returns (string)


Usage

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

Defined (1)

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

/bp-messages/bp-messages-template.php  
  1. function bp_get_message_get_recipient_usernames() { 
  2.  
  3. // Sanitized in bp-messages-filters.php. 
  4. $recipients = isset( $_GET['r'] ) 
  5. ? $_GET['r'] 
  6. : ''; 
  7.  
  8. /** 
  9. * Filters the recipients usernames for prefilling the 'To' field on the Compose screen. 
  10. * @since 1.0.0 
  11. * @param string $recipients Recipients usernames for 'To' field prefilling. 
  12. */