- Contributors: Mehdi Soltani
This repository contains a plugin boilerplate that its structure is based on OOP. So if you feel better with writing code in OOP way, it's perfect choice to use it. Everything in this boilerplate is being created by OOP concepts and then combined with WordPress concepts.
The primary plugin file is being located in root directory.
In the root directory, you can see these subdirectories:
All assets files locates in this directory. For admin assets, I consider a separated directory. It contains all of CSS, JS and images files which the plugin needs to use them.
All classes related to this plugin is located in this directory.
Files that the plugin needs for internationalization is located in language directory.
For many reasons, we need to log some processes like errors or doing repeating tasks. For this reason, I decided to have a separeted directory.
For separating view part, I use template directory. So if I need to render any HTML files in front end or back end, I ues this directory.