wp-plugin-scaffold
wp-plugin-scaffold copied to clipboard
A simple scaffold used for what's needed to spin up a Composer-based WordPress plugin.
WP Plugin Scaffold
The description for the plugin scaffolded by this repository.
Installation
Using The WordPress Dashboard
- Navigate to the 'Add New' Plugin Dashboard.
- Select
wp-plugin-scaffold.zipfrom your computer. - Upload.
- Activate the plugin on the WordPress Plugin Dashboard.
Using FTP
- Extract
wp-plugin-scaffold.zipto your computer. - Upload the
wp-plugin-scaffolddirectory to yourwp-content/pluginsdirectory. - Activate the plugin on the WordPress Plugins Dashboard.
Git
- Navigate to the
pluginsdirectory of your WordPress installation. - From the terminal, run
$ git clone [email protected]:tommcfarlin/wp-plugin-scaffold.git
Notes
This specific repository assumes you're running PHP 8.0. At the time of this writing, WordPress is not fully compatible with PHP 8.0; however, if you change the references to PHP 7.4.28 in
composer.jsonplugin.php
Then you should be okay. If you still experience problems, make sure you're not running Composer 2. If that still doesn't work, don't hesitate to open an issue.