WordPress Plugin Template

Josh's WordPress plugin starter

Documentation
Name
Getting Started
PHP
JavaScript
Local Development
CI/ CD

View the Project on GitHub Shelob9/wordpress-plugin

PHP Development With WordPress Plugin

PHP code goes in the directory “php” or “tests”. The psr-4 standard is used for file and class naming. Composer is used for an autoloader and for dev dependencies.

The php tests are separated into two genres: unit – located in /tests/Unit – and integration – located in /tests/Integration.

Unit Tests

Unit Testing Classes That Call Functions From WordPress core

These tests do NOT run with WordPress and MySQL and are run with phpunit.

The following unit testing tools are installed:

Integration Tests