Plugin update tutorial
An example of how to update WordPress plugins.
by janw.oostendorp · github.com/janw-me/update-tutorial · website
★ 0stars
10release downloads
≈10active sites
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/janw-me/update-tutorial/releases/download/1.0.0.b/update-tutorial.1.0.0.zipDeclares an update source (plugins.janw.me), so updates arrive through the plugin's own updater.
From the readme
Bundled commands
Inside composer several extra tools have been added:
Code formatting:
- composer run phpcbf Run the phpcbf, an autoformatter.
- composer run phpcs Run phpcs, Checks style and syntax agianst theh WordPress coding stadard.
- composer run lint Run php linter, Checks syntax.
- composer run phpstan Run phpstan, Checks styntax, docblock, non existing functions/classes.
- composer run ci Run all the above syntax checkers at once.
Creating plugin zip:
- composer run createzip Will create a zip named 'plugin-slug.zip' in the plugin folder.
- composer run createzip-in-downloads Will create a zip named 'plugin-slug-0.1.0.zip' in the plugin folder.
- composer run createzip-with-version Will create a zip named 'plugin-slug-0.1.0.zip' in the Downloads folder.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.0.0.b | Feb 20, 2022 | update-tutorial.1.0.0.zip | 5 |
| 1.0.0 | Feb 20, 2022 | update-tutorial.1.0.0.zip | 5 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.