Replies
So this first step is an easy thing to accomplish. This should effectively prevent users from sending messages to more than one user, as they will be forced to go to the person’s profile and message the person directly.
function modify_user_subnav() {
$bp = buddypress();
bp_core_remove_subnav_item( $bp->messages->slug, ‘compose’ );
}add_action( ‘bp_setup_nav’, ‘modify_user_subnav’, 100 );
Next step would be to prevent multiple threads from creating. The server would have to check if a thread is already made, and if so, continue with that thread. Otherwise, it will create a new one but only for the user that does not have the thread.
Any suggestions on where I may begin?