mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 10:46:11 +09:00
Refactor extension updater to use multiple hooks.
Updated the `package_start` method to define separate hooks for 'start' and 'complete' package lifecycle events. This improves code clarity and prepares the updater for handling more specific actions in the future.
This commit is contained in:
@@ -42,7 +42,10 @@ class Extensions_Updater {
|
||||
}
|
||||
|
||||
public function package_start( $version, $file_path, $delay, $per_page ) {
|
||||
$hook = 'um_' . $this->updater_data['slug'] . '_package_complete';
|
||||
$hooks = array(
|
||||
'start' => 'um_' . $this->updater_data['slug'] . '_package_start',
|
||||
'complete' => 'um_' . $this->updater_data['slug'] . '_package_complete',
|
||||
);
|
||||
|
||||
include_once $file_path;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user