Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/joedooley/woocommerce-customizations/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Plugin Starter
Barebones starter plugin with composer autoloading and webpack.
Installation
- Clone plugin to WordPress plugin directory.
- Rename plugin, constants in
bootstrap.php, and update all namespaces to your own.- Don't forget to update the namespace in
composer.json
- Don't forget to update the namespace in
- Run
npm installfrom plugin root directory.- The postinstall npm script runs
composer installfor you.
- The postinstall npm script runs
- Run
npm run watchfrom plugin root directory to watch forscssandjschanges.
Notes
- All class files in the
srcdirectory will be autoloaded by composer. - Composer will not autoload PHP files that are not classes unless you add each file to the files array
in your
composer.json. You will have to runcomposer updateas well.