How Can We Help?
Control if user can upload files with hook
add_filter('bp_better_messages_user_can_upload_files', function( $can_upload, $user_id, $thread_id ){
/**
* Your code goes here
*/
return $can_upload;
}, 10, 3);
add_filter('bp_better_messages_user_can_upload_files', function( $can_upload, $user_id, $thread_id ){
/**
* Your code goes here
*/
return $can_upload;
}, 10, 3);