apply_filters( 'bp_get_messages_username_value', string $value )

Filters the default username for the recipient box.

Description

Value passed into filter is dependent on if the ‘bp_messages_send_to’ cookie or ‘r’ $_GET parameter is set.

Parameters

$value

(string) Default user name.

Source

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

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

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.