-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The way I do it if I need other than the existing public or admin classes, Is that i add a new file with the new class in the respective folder (admin or public) and load the new class in the main includes file where all other classes are loaded. you could also include it in one of the existing classes (as a dependency). you can see an example where I did this here In this case here I extended the loader class with an autoloader instead: |
Beta Was this translation helpful? Give feedback.
The way I do it if I need other than the existing public or admin classes, Is that i add a new file with the new class in the respective folder (admin or public) and load the new class in the main includes file where all other classes are loaded.
you could also include it in one of the existing classes (as a dependency).
you can see an example where I did this here
https://github.com/TukuToi/tukutoi-shortcodes
In this case here I extended the loader class with an autoloader instead:
https://github.com/TukuToi/tukutoi-cp-directory-integration
so you don’t need to worry about inclusion anymore…