| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/wondermakr.com/wp-content/plugins/modula/includes/ |
Upload File : |
<?php
namespace Modula_Pro;
use Modula_Pro\Extensions\Licensing;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Plugin activation hook class.
*
* Handles plugin activation tasks, including license activation
* for pre-installed versions.
*
* @since 2.8.21
*/
class Activator {
/**
* Activation hook callback.
*
* Checks if license data exists. If not, and MODULA_PRO_PREINSTALL
* is defined, activates the license using the preinstall value.
*
* @return void
*/
public static function activate() {
$license_key_option = 'modula_pro_license_key';
$license_key = get_option( $license_key_option, '' );
$licensing = Licensing::get_instance();
if ( ! empty( $license_key ) ) {
$licensing->activate_license( $license_key );
return;
}
if ( defined( 'MODULA_PRO_PREINSTALL' ) && ! empty( MODULA_PRO_PREINSTALL ) ) {
$licensing->activate_license( MODULA_PRO_PREINSTALL );
}
}
}