mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
v3.33.1
This commit is contained in:
19
core/maintenance.php
Normal file
19
core/maintenance.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace ElementorPro\Core;
|
||||
|
||||
use ElementorPro\License\API;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
class Maintenance {
|
||||
|
||||
public static function init(): void {
|
||||
register_deactivation_hook( ELEMENTOR_PRO_PLUGIN_BASE, [ __CLASS__, 'on_deactivated' ] );
|
||||
}
|
||||
|
||||
public static function on_deactivated(): void {
|
||||
API::get_version( true, 'deactivated' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user