BuddyPress Message Privacy – can default be set to Friends?

  • Participant
    Level: Initiated
    Posts: 5
    Vision Synergy on #3139

    We have not yet purchased this plugin. Can the default setting for all new users be set to “Friends” rather than “Everyone”? This would help reduce or eliminate private message spam.

  • Keymaster
    (BuddyDev Team)
    Posts: 24332
    Brajesh Singh on #3141

    Hi Lucas,
    Putting this snippet in your bp-custom.php will set the default message privacy to friends only

    add_filter( 'bpdmp_default_settings', 'buddydev_set_message_privacy_default');
    function buddydev_set_message_privacy_default( $settings ) {
    	$settings['privacy_type'] ='friends_only';
    	return $settings;

    Hope that helps.

You must be logged in to reply to this topic.

This topic is: not resolved