PHP code example of thefrosty / wp-upgrade-task-runner
1. Go to this page and download the library: Download thefrosty/wp-upgrade-task-runner library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thefrosty / wp-upgrade-task-runner example snippets
use TheFrosty\WpUpgradeTaskRunner\Tasks\TaskLoader;
\add_filter(TaskLoader::REGISTER_TASKS_TAG, static function(array $tasks): array {
$tasks[] = new \Project\SomeCustomTask();
return $tasks;
});