Skip to content

Building a custom wordpress plugin.

  1. Plugin is hosted on github
  2. Plugin automatically installed by composer
  3. Can develop plugin in Wordpress and push changes to github.
  4. Will update installed plugin point to the github repo

Resources

Setup for development

  1. Create composer.json file in root directory. - composer init
  2. Add "type": "wordpress-plugin" to get composer to install it in the wordpress plugin directory
{
  "name": "",
  "description": "",
  "authors": [
    {
      "name": "Johan Martin",
      "homepage": "http://www.johan-martin.com",
      "role": "developer"
    }
  ],
  "keywords":[
    "Wordpress",
    "Plug-in",
  ],
  "type": "wordpress-plugin"
}
  1. Add any necessary requirements for the plugin.
  2. Enable debug log in wp-config.php