ConstructWP is a framework system to allow for easier development as well as useful tools and addons.
- Email system with templates that can be created in the WP Admin dashboard
- Ability to autoload theme CSS & JS files if they exist
assets/css/[THEME-SLUG].css
assets/js/[THEME-SLUG].js
assets/css/[TEMPLATE-FILE-NAME].css
assets/js/[TEMPLATE-FILE-NAME].js
- Ability to autoload theme models and template controllers
- Models located in
/models
- Controllers located in
/controllers
using the same name as the template file
- Models located in
- Additional menu item options to further customise a menu
- A custom navwalker based on Bootstrap 5
- Various settings including optimisation and access restriction
- A variety of useful utilities for use during theme or plugin development
- More to come!
- Download ConstructWP from Github
- Upload
construct-wp
to the/wp-content/plugins/
directory - Activate the plugin through the
Plugins
menu in WordPress - Use the Settings->ConstructWP screen to configure the plugin
Controllers follow the same path and file name as their respective templates, located in the controller
directory. e.g. For the author.php
template, the controller will be controller/author.php
while the controller for the templates/template-profile.php
template will by controller/templates/template-profile.php
Yes! Models and controllers can be auto-initiated if the class has a static method called init
.