This is what I am trying to do:
Lets say I have a parent plugin, Plugin X, and a child plugin (an extension, whose purpose is to enhance X) Y.
There is a function in plugin X that I wish to add code to, from plugin Y. In other words, I am writing plugin Y.
Using WordPress, I know there is a way to override Plugin X's like such:
- remove action plugin X's function
- add action Y's function
- function thatIgotfromXmodified { }
But is there any other way? I don't want to have to modify my plugin everytime Plugin X's author changes the functions code, so that users of my plugin get all the benefits of X's new version.
It looks like if Plugin X's author adds something like an action filter, I can hook into that somehow and add code there? Not sure if it matters or not but the function I am editing is backend code (ie no output to user).
Suggestions? Ideas?