Home
Softono

Oop Wordpress Plugin Boilerplate

Open source PHP
50
Stars
23
Forks
0
Issues
3
Watchers
6 years
Last Commit

 About Oop Wordpress Plugin Boilerplate

This is a boilerplate for plugin development in WordPress with OOP structure

Platforms

Web Self-hosted

Languages

PHP

Links

Need Help Installing Oop Wordpress Plugin Boilerplate?

We provide expert installation service for this software. Our team will install, configure, and secure Oop Wordpress Plugin Boilerplate on your server. plans start at just $30.

Oop Wordpress Plugin Boilerplate

View on GitHub

OOP WordPress Plugin Boilerplate

Description

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.

🚦 Explanation about plugin structure

Plugin directories and files:

The primary plugin file is being located in root directory.

In the root directory, you can see these subdirectories:

1. assets

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.

2. includes

All classes related to this plugin is located in this directory.

3. languages

Files that the plugin needs for internationalization is located in language directory.

4. logs

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.

5. templates

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.