private functions in plugins

Well, it is not possible, I guess. If you define function in global scope, then it is visible for all code.

The only way to make it private for plugin is to use OOP (and it’s recommended way of writing plugins).

You can rename this function, but it won’t solve your problem in the long run (still there is a chance that there will be function with the same name).