Yeoman Wordpress Plugin Generator
You need to install node before you can run anything.
npm install -g
After you installed node, you'll install Yeoman next.
npm install -g yo
To install generator from npm run:
npm install -g generator-va-wpplugin
To use the generator, cd
to your Wordpress plugins directory and run:
yo va-wpplugin
That's all!
The generator comes with set of sub-generator which listed below:
-
yo va-wpplugin:cpter {post_type}
Customm post type -
yo va-wpplugin:taxonomier {taxonomy}
Taxonomy -
yo va-wpplugin:widgeter {widget}
Widget
You have two ways to update the sub generator:
cd
to plugins/your-generator-plugin/
composer update {package-name}
yo va-wpplugin:{sub-generator} {argument} --update
Example: yo va-wpplugin:cpter "test-cpt" --update
- Rename plugin
- Fixed homepage and author URL
- Fixed contact email
- Update missing files
- Update missing files
- Add options
--update