Home - dotherightthing/wpdtrt-plugin-boilerplate GitHub Wiki

Welcome to the DTRT WordPress Plugin Boilerplate wiki!

Background

Goals

The goals of this plugin are:

  • to support modular plugin-based WordPress development
  • to consolidate best practice techniques
  • to create a familiar, standardised interface for plugin development
  • to allow the boilerplate code to be maintained independently of the plugin functionality
  • to allow different versions of the boilerplate to exist, to reduce maintenance time
  • to permit a focus on plugin functionality during development

History

This is an evolution of several other approaches:

Yeoman Plugin Generator

  • generates a WordPress plugin from a Yeoman template
  • difficult to track evolving changes to boilerplate code

Base theme

  • WordPress parent theme
  • bundles common functionality
  • functionality too tightly coupled

3rd party class

  • someone else's code
  • not intuitive
  • dependent on an external maintainer