bp_get_send_private_message_link()
Generate the URL for the Private Message link in member profile headers.
Description Description
Return Return
(bool|string) False on failure, otherwise the URL.
Source Source
File: bp-messages/bp-messages-template.php
function bp_get_send_private_message_link() { if ( bp_is_my_profile() || ! is_user_logged_in() ) { return false; } /** * Filters the URL for the Private Message link in member profile headers. * * @since 1.2.10 * * @param string $value URL for the Private Message link in member profile headers. */ return apply_filters( 'bp_get_send_private_message_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( bp_displayed_user_id() ) ) ); }