Title: BuddyPress Private Messages for Friends Only
Author: r-a-y
Published: <strong>May 14, 2010</strong>
Last modified: June 4, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/buddypress-private-message-for-friends-
only.svg)

# BuddyPress Private Messages for Friends Only

 By [r-a-y](https://profiles.wordpress.org/r-a-y/)

[Download](https://downloads.wordpress.org/plugin/buddypress-private-message-for-friends-only.1.1.zip)

 * [Details](https://en-au.wordpress.org/plugins/buddypress-private-message-for-friends-only/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/buddypress-private-message-for-friends-only/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/buddypress-private-message-for-friends-only/#installation)
 * [Development](https://en-au.wordpress.org/plugins/buddypress-private-message-for-friends-only/#developers)

 [Support](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/)

## Description

By default, any member on your BuddyPress site is allowed to send private messages
to anyone in your userbase.

This plugin only allows friends and site administrators to send private messages.
Thus, acting as another deterrent from illegitimate users.

### Donate!

I’m a forum moderator on the buddypress.org forums. I spend a lot of my free time
helping people – pro bono!

If you downloaded this plugin and like it, please:

 * [Fund my work soundtrack!](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CT8KZGFEVA3R6)
   Music helps me help you! A dollar lets me buy a new tune off Amazon MP3, Amie
   Street or emusic.com! Or if you’re feeling generous, you can help me buy a whole
   CD! If you choose to donate, let me know what songs or which CD you want me to
   listen to! 🙂
 * Rate this plugin
 * Spread the gospel of BuddyPress

## Installation

 1. Download, install and activate the plugin.
 2. That’s it! 🙂

## FAQ

  What happens when I try to send someone a private message who isn’t my friend?

You’ll get a nice error message saying that your message wasn’t sent because you
are not the recipient’s friend!
 Site administrators can always send private messages.

  Can I allow certain user IDs to be private messaged without being friends?

As of version 1.1, you can! Simply add the following line to /wp-config.php or /
wp-content/plugins/bp-custom.php:

    ```
    define( 'BP_PM_RECIPIENT_WHITELIST', '1,2' );
    ```

In the example above, anyone can send a message to user ID 1 and 2 without needing
to be their friend.

  I noticed that the error message is in English!

Yes it is. But fear not! You can send me a translation file for inclusion in the
next release of the plugin.

## Reviews

![](https://secure.gravatar.com/avatar/b7ab8e861b47a897dde1d6e6e82b25f4e1f1c7976b5a4de862a48577489af3a3?
s=60&d=retro&r=g)

### 󠀁[WORKS at the edge!](https://wordpress.org/support/topic/works-at-the-edge/)󠁿

 [Amin](https://profiles.wordpress.org/aminima/) September 3, 2016

surprisingly it's working with the latest buddypress (now 2.6.1.1) and wp 4.5.3 !
well done!

![](https://secure.gravatar.com/avatar/e1097aded35cb30b1a506b2f54965e2e8651f6b922761b768e1aab24b1e58f76?
s=60&d=retro&r=g)

### 󠀁[A must-have for every buddypress community!](https://wordpress.org/support/topic/a-must-have-for-every-buddypress-community/)󠁿

 [Georgio](https://profiles.wordpress.org/georgio-1/) September 3, 2016

This plugin works for me. I think it is a must have plugin for every serious buddypress
community. Thanks r-a-y!

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/)

## Contributors & Developers

“BuddyPress Private Messages for Friends Only” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ r-a-y ](https://profiles.wordpress.org/r-a-y/)

[Translate “BuddyPress Private Messages for Friends Only” into your language.](https://translate.wordpress.org/projects/wp-plugins/buddypress-private-message-for-friends-only)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/buddypress-private-message-for-friends-only/),
check out the [SVN repository](https://plugins.svn.wordpress.org/buddypress-private-message-for-friends-only/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/buddypress-private-message-for-friends-only/)
by [RSS](https://plugins.trac.wordpress.org/log/buddypress-private-message-for-friends-only/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Added support to whitelist recipient user IDs
 * Make sure site admins can always view the “Send Private Message” button (thanks
   to intimez and brianglanz for reporting)
 * Added check to see if friends component is enabled
 * Restructured the plugin into a class

#### 1.0

 * First version!

## Meta

 *  Version **1.1**
 *  Last updated **16 years ago**
 *  Active installations **20+**
 *  Language
 * [English (US)](https://wordpress.org/plugins/buddypress-private-message-for-friends-only/)
 * Tags
 * [buddypress](https://en-au.wordpress.org/plugins/tags/buddypress/)[message](https://en-au.wordpress.org/plugins/tags/message/)
   [pm](https://en-au.wordpress.org/plugins/tags/pm/)[private message](https://en-au.wordpress.org/plugins/tags/private-message/)
   [spam](https://en-au.wordpress.org/plugins/tags/spam/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/buddypress-private-message-for-friends-only/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/reviews/)

## Contributors

 *   [ r-a-y ](https://profiles.wordpress.org/r-a-y/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/buddypress-private-message-for-friends-only/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CT8KZGFEVA3R6)