I want to replace a class which is loaded in main project by $addon= new Add_On; the Add_On class has the structure I like but I want to replace all its details.
I can comment out the $addon = new Add_on in main project and load my own , but I don’t want to modify the main project’s code directly. How can I replace this class?
I want to replace a class which is loaded in main project by $addon=
Share
Create a new class extending Add_On class: