wordpress-plugin-simple-boilerplate icon indicating copy to clipboard operation
wordpress-plugin-simple-boilerplate copied to clipboard

A very simple plugin boilerplate for WordPress.

#WordPress Plugin Boilerplate#

  • Contributors: Webby Scots
  • License: GPLv2 or later
  • License URI: http://www.gnu.org/licenses/gpl-2.0.html

Use this to make your WordPress plugins.

Installation and Usage

  1. Clone the repo
  2. Code :-)

It has its own autoloader. All you need to do is create an includes folder and add the class files using add class-mypluginname-classname.php. And then in the init function do:

    $this->classname = new MyPluginName_ClassName();
}```

The part after new is what is searched for, as lowercase and with underscores as dashes in the includes folder, but the class- part is prefixed for you.