I'm using a plugin (Paid Memberships Pro, but that shouldn't matter), and I need to overload a function in that plugin. I'm writing a custom "plugin" that changes certain parts of the Paid Memberships Pro plugin. Most of this works well. I can write templates that take priority over their counterparts, but when I write a function I can't call it from the other plugin. I imagine this is due to security or something, and intentional.
My question is: is there a good way to overwrite certain plugin functionality from a different function? I want to be able to update the original plugin and not lose functionality (otherwise I would literally just overwrite it). If you need to see any code I've got it handy.