/wordpress-plugin-simple-boilerplate

A very simple plugin boilerplate for WordPress.

Primary LanguagePHP

#WordPress Plugin Boilerplate#

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.