Upgrade Task Runner
A WordPress plugin for developers to write custom migration tasks.
by Austin Passy · github.com/thefrosty/wp-upgrade-task-runner · website
★ 4stars
18kcomposer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/thefrosty/wp-upgrade-task-runner/archive/refs/heads/develop.zipAlso on Packagist as thefrosty/wp-upgrade-task-runner:
composer require thefrosty/wp-upgrade-task-runnerFrom the readme
WordPress Upgrade Task Runner
Register custom migration tasks that can be triggered from a dashboard in the admin and run via AJAX.
Requirements
The required WordPress version will always be the most recent point release of
the previous major release branch.
For both PHP and WordPress requirements, although this library may work with a
version below the required versions, they will not be supported and any
compatibility is entirely coincidental.
Installation
To install this library, use Composer:
Getting Started
If a new task is needed, there are only two required steps that are needed.
1. A class needs to be created and this class needs to extend the AbstractTaskRunner
class. See the ExampleMigrationTask example class.
2. Register the new task class via the TaskLoader::REGISTERTASKSTAG filter:
The task class
When a class is added, it needs to have a few pre-defined class values. Both the DATE and TITLE constant are required
to be unique. These are what registers a one off cron task when manually running the task from the admin page.
The TaskLoader
Add the new class as a property in the TaskLoader class and instantiate it in the registertasks method (just like
the Exam
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 2.8.0 | Mar 22, 2024 | — | — |
| 2.7.0 | Apr 18, 2023 | — | — |
| 2.6.0 | Mar 1, 2022 | — | — |
| 2.5.1 | Nov 2, 2021 | — | — |
| 2.5.0 | Nov 1, 2021 | — | — |
| 2.4.3 | Jan 4, 2021 | — | — |
| 2.4.0 | Dec 16, 2020 | — | — |
| 2.3.0 | Sep 25, 2020 | — | — |
| 2.2.1 | Aug 13, 2020 | — | — |
| 2.2.0 | Aug 11, 2020 | — | — |
| 2.1.2 | Apr 21, 2020 | — | — |
| 2.1.1 | Jan 31, 2020 | — | — |
| 2.1.0 | Jan 10, 2020 | — | — |
| 2.0.0 | Dec 4, 2019 | — | — |
| 1.3.0 | Nov 26, 2019 | — | — |
| 1.2.1 | Aug 1, 2019 | — | — |
| 1.2.0 | Mar 7, 2019 | — | — |
| 1.1.3 | Mar 7, 2019 | — | — |
| 1.1.2 | Mar 7, 2019 | — | — |
| 1.1.1 | Mar 7, 2019 | — | — |
| 1.1.0 | Mar 6, 2019 | — | — |