bp_get_message_get_recipient_usernames()

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

Description

Return

(string)

Source

File: bp-messages/bp-messages-template.php

1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
function bp_get_message_get_recipient_usernames() {
 
    // Sanitized in bp-messages-filters.php.
    $recipients = isset( $_GET['r'] )
        ? $_GET['r']
        : '';
 
    /**
     * Filters the recipients usernames for prefilling the 'To' field on the Compose screen.
     *
     * @since BuddyPress 1.0.0
     *
     * @param string $recipients Recipients usernames for 'To' field prefilling.
     */
    return apply_filters( 'bp_get_message_get_recipient_usernames', $recipients );
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.