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


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": "",
      "role": "developer"
  "type": "wordpress-plugin"
  1. Add any necessary requirements for the plugin.
  2. Enable debug log in wp-config.php