Add debug mode for extensions updater

Introduced the `UM_UPDATER_DEBUG` constant to enable debugging for upgrade packages. This facilitates easier troubleshooting and testing during update processes.
This commit is contained in:
Mykyta Synelnikov
2025-11-03 17:58:53 +02:00
parent c2da11ff0a
commit fb3a296fc8
2 changed files with 3 additions and 0 deletions
@@ -47,6 +47,8 @@ class Extensions_Updater {
'complete' => 'um_' . $this->updater_data['slug'] . '_package_complete',
);
$debug = defined( 'UM_UPDATER_DEBUG' ) && UM_UPDATER_DEBUG;
include_once $file_path;
/**
* IMPORTANT!!!: Last action that we need to do after package is complete.