Disable profile editing

Hello!

How can I disable the ability to update a user profile?

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/user_update/errors',
	function( $errors, $form ) {
		$errors[] = 'Unfortunately, there is no possiblity to edit user profile data.';
		
		return $errors;
	},
	1000,
	2
);