I've developed two plugins in which one function is the same (same name, same functionality). When trying to activate both plugins Wordpress throws an error because it doesn't let me defining the function under the same name twice.
Is there a way to make this function private for the plugin only, without using object oriented programming and without simply renaming the function? I don't want to use OOP because I first would have to learn it. Also I wouldn't like renaming the function because I might want to use it in other plugins too and renaming feels not right to do.