Skip to content

Wordpress Plugin Dev Template Installer

Notes

  • Date Posted: May 23, 2021

WordPress Plugin Dev Template Installer

I was going to upload a basic plugin template for WordPress. The original idea being a repo with all the core files that I can download and do a search replace on a few variables. Sounded easy. Then I realized it would be even easier if I had an installer that did the search replace for me. All the script needs to know is the hyphenated project name and from there truncates the name to fill in the gaps. I didn’t know how to write bash scripts so I took the opportunity this weekend to learn it. Now I have a WP Plugin development installer.

To create a project

> chmod +x ./install.sh && ./install.sh
Plugin name (sample-app): my-custom-plugin
Plugin description: something pretty cool
Author name: Marilyn Morales
Author URI: http://marilynmorales.com
......
My Custom Plugin created!

Features

Out of the box the plugin comes with a few handy features

  • Create Shortcodes
  • Create Hooks
  • Create API Endpoints
  • Make DB Queries using $wp->prepare()
  • Webpack Dev and Production ready
  • Enqueue JS and SCSS to site

View on Github