bp_get_send_private_message_link() – BuddyPress Function Reference

Description

bp_get_send_private_message_link() returns the URL for the Private Message link in member profile headers. It uses profile data of currently logged in user and currently displayed user.

Usage

The function returns the Private Message Link for use in PHP on success and False on failure.

<a href="<?php echo bp_get_send_private_message_link(); ?>">Send Message</a>


Returns

This function returns the URL on success and False on failure. The function fails if there is no currently logged in user or profile being viewed is one’s own.

Related Functions: