WP Manifestindependent plugin directory
manifest / updates / update-tutorial

Plugin update tutorial

An example of how to update WordPress plugins.

★ 0stars
11release downloads
≈10active sites
1.0.0.blatest · 4 years ago

Install

Download update-tutorial.1.0.0.zip From the 1.0.0.b release on GitHub, Feb 20, 2022

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/janw-me/update-tutorial/releases/download/1.0.0.b/update-tutorial.1.0.0.zip
Updates itself. It ships its own updater, so new versions appear under Dashboard → Updates.

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.

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.0.0.b latest
Feb 20, 2022 4 years ago
update-tutorial.1.0.0.zip
6
Feb 20, 2022 4 years ago
update-tutorial.1.0.0.zip
5

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.