Over a million developers have joined DZone.

WordPress Plugin Boilerplate

DZone's Guide to

WordPress Plugin Boilerplate

· Java Zone ·
Free Resource

Java-based (JDBC) data connectivity to SaaS, NoSQL, and Big Data. Download Now.

For anyone starting out in development or WordPress development it can be difficult to work out the best way of building your WordPress plugins. What's the best way to organize your code and the best way to write your code in the plugin?

Tom McFarlin has created an open source project to help you create your WordPress plugins. The WordPress Plugin Boilerplate is a project that can be found on GitHub and is the ideal code to make a start on your WordPress plugins.

It is a standardized, organized, object-oriented code base for building any WordPress plugin.


The WordPress boilerplate plugin follows the coding standards set out in the Make WordPress coding standards.

It makes it very easy to organize your code in front-end and admin area only code.

To get started on using the boilerplate you can clone the plugin from GitHub.

WordPress Boilerplate Plugin

WordPress Plugin Boilerplate Generator


When you first clone the plugin boilerplate there will be a lot of code that you need to change as the class names will be called things like Plugin_Name. Enrique Chavez has made a Boilerplate plugin generator that allows you to type in the Name of the plugin and it will automatically generate the code for the plugin based on the plugin name you entered into the generator.

To try it out for yourself on your next project you can use the tool here.

WordPress Boilerplate Plugin Generator

Connect any Java based application to your SaaS data.  Over 100+ Java-based data source connectors.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}