Updater::get_update_callbacks()
Returns an array of callbacks with version strings as keys.
Any key higher than the version recorded in the DB and lower than $this->current_version will have its callback called on admin_init after a plugin update.
Return
(TECEvent_Automatorarray<string|TECEvent_Automatorcallback>) The version number and callback to use.
Source
File: src/Event_Automator/Updater.php
public function get_update_callbacks() {
return [
'1.2' => [ $this, 'update_pue_license_key' ],
];
}
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |