Two plugins contain the same function name so they're conflicting I'm trying to use a filter function from a plugin, but it turns out two plugins that I have installed have the same function name and the wrong one is getting called. For now I edited the vendor files to rename the function, but I don't want that to be my final solution in case I want to upgrade the plugin later. 

What is the best way to go about circumventing this type of conflict between two plugins?
You could get around this by creating your own renamed copies of those functions. 


Create a module.
Copy the content of each affected plugin's twigextensions folder to your module's twigextensions folder.
Adjust the namespaces in these files to match your module
Rename the functions / filters in these files to something unique.
Load these twigextensions in your module's main file (use statement plus Craft::$app-&gt;view-&gt;registerTwigExtension).
You can now use the filters in twig by referencing the unique name you gave them.


If you haven't worked with modules before, you can use pluginfactory.io to scaffold a module that includes lots of example code, including all the required code to set up a twig extension.

To improve on this further, instead of a straight up copying of the twig extensions, refactor them to call the public functions in the original plugin files. This will ensure it's much less likely to break things when the plugin gets updated later.