DIGITAL SOLUTIONS
What is CREN()?
CREN() or creativEntities class as it stands for is a framework designed for WordPress plugin.
Why CREN()?
There are many standardized coding for a WordPress theme but this one aims for simplicity.
Singleton Pattern
CREN() uses a singleton pattern to restrict the number of instances that can be created to only one. This is useful because only one CREN() object is needed to coordinate actions across the system. This will also make resource-consuming more effective since accidental or unnecessary CREN() initialization will not be possible.
Object-Oriented and Class-Based
To standardize the coding structure, created features should be a class and placed in the specified directory.
Simple Yet Powerful Class Loading System
Simply put your class into the class directory within the plugin, and use the following code:
CREN()->your_class();
Your class is now loaded and ready to use via:
CREN()->your_class()->your_method();
Modules
Modules are sets of classes or files for bigger functionalities that require multiple classes or any additional files like JS or CSS.
Using the powerful class loading feature, loading modules work the same way but are located in the modules directory and can be bundled into its directory.
About The Author
Tri Hartanto
Started as a kid who loves database management in 2008, become a self-taught web developer in 2011, and in 2019 a novice photographer.
Categories
Interested? Contact Us
Lets get in touch. Send us a message: