Between Plugins
-
Hello,
I’m new to plugin development. I have a question on my mind. I would be glad if you could help. I searched for the answer but couldn’t find anything clear.
For example, there is a plugin called a. I want to make some changes in this plugin. For example, I want to make changes to a file at the following file path.
plugins / a / include / x.php
This file contains a code like this:function example () { $ value = 1; }
As you can imagine, if I make a change in this file (for example, the function in this file), it will be deleted with the update.
I want to code a plugin named b to solve this problem. With this plugin, I want to interfere with the function as in the example above. For example, the new function should look like this:
function example () { $value = 2; $another_value = 5; }
The question starts here: “Function at the beginning” does not contain an action or a filter as you can see. It is also not in the template file. In such a situation is there any way to be able to make changes with another plugin (eg b)?
In short, in order to make changes to another plug-in file (or a function in it) with a plug-in, it should be included in the template file or should it contain an action or hook ? Otherwise, is it possible to edit?
I hope I could explain. Thank you.
- The topic ‘Between Plugins’ is closed to new replies.