bbpress: disable the possibility an admin can see others private-messages

/* in plugin-file: buddypress/bp-members/bp-membersfunctions.php#1485
 * Check whether the logged-in user can edit settings for the displayed user.
 * function: bp_core_can_edit_settings()
 * bp_moderate has the capacity 'manage_options', so all roles with 'manage_options' (admin)
 * can see private-messages unless it is filtered out by this filter

	function custom_bp_core_can_edit_settings() {
		$status = false;
		if ( bp_is_my_profile() ) {
			$status = true;
	return $status;
	add_filter( 'bp_core_can_edit_settings', 'custom_bp_core_can_edit_settings');

Author: Jakob

Wordpress & bicycle enthusiast

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *