I am trying to create a plugin that lets me extend upon a class defined in a particular theme.
The theme has a class of 'ET_Builder_Module'
Within the theme there are various other classes defined that extend this, for example:
class ET_Builder_Module_Blurb extends ET_Builder_Module
I would like to add my own classes to extend the theme however I get the following error:
Fatal error: Class 'ET_Builder_Module' not found
I have used the following code:
class NOOU_ET_Builder_Test_Module extends ET_Builder_Module
I simply copy and pasted one of the classes from the theme and renamed the class
Would any one be able to show me how to extend a class from a theme within a plugin?