# Elementor Pro Activator

## Description
Elementor Pro Activator is a WordPress plugin that allows users to activate Elementor Pro features without the typical license purchase. This plugin is designed for development and testing purposes only.

## Installation
1. Upload the `elementor-pro-activator` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Ensure that Elementor Pro is installed and activated

## Requirements
- WordPress 5.9.0 or higher
- PHP 7.2 or higher
- Elementor Pro plugin installed

## Usage
Once activated, the plugin will automatically set up a valid license for Elementor Pro. No additional configuration is required.

## Disclaimer
This plugin is intended for development and testing environments only. It should not be used on production sites or for commercial purposes. Always respect the licensing terms of Elementor Pro.

## Changelog

### 1.0.0 (2024-08-02)
- Initial release
- Added automatic license activation for Elementor Pro
- Added filter to validate license with Elementor's API

### 1.0.1 (2024-08-02)
- Removed unnecessary admin notices
- Improved code structure and readability
- Implemented network activation support for multisite installations
- Removed unused 'download_file' function

### 1.0.2 (2024-08-05)
- Added external API to download templates

### 1.0.3 (2024-08-08)
- Added all the pro features array for license validation
- Added extra reponses for external API calls

### 1.0.4 (2024-08-14)
- Now require GPL Times auto updater plugin to download premium templates and Kit Library.
- Can import the Elementor Kit Library as well.
- Bug fixes.

### 1.0.5 (2024-08-25)
- Added admin notice to prompt installation of GPL Times auto updater plugin if not installed
- Implemented one-click installer for GPL Times auto updater plugin
- Improved user experience with automatic activation after installation
- Enhanced security with nonce verification for plugin installation process

### 1.0.6 (2024-11-25)
- MAJOR UPDATE: Complete code overhaul for improved reliability and compatibility
- FIXED: "Connect Account" requirement - proper Connect authentication with per-user data
- Added automatic Elementor Connect data setup (stored per-user)
- Shows connected as noreply@gpltimes.com (GPL Times) in Elementor
- License info displays correctly with customer email
- Fixed PHP compatibility issues that caused plugin to work inconsistently
- Improved error handling throughout the plugin with comprehensive logging
- Enhanced AJAX security with proper nonce validation and sanitization
- Fixed HTTP request filter conflicts and race conditions
- Added proper Elementor Pro detection before activation
- Improved multisite support with better network activation handling
- Enhanced jQuery dependency management for better compatibility
- Added comprehensive error messages and user feedback
- Fixed array key access issues that caused PHP warnings
- Improved template download interception with better error handling
- Added SSL verification and timeout settings for external API calls
- Better capability checks throughout admin functions
- Improved code structure removing bad practices (extract() usage)
- Added plugin constants for better maintainability
- Enhanced validation for URLs, user inputs, and data types
- Fixed missing function declarations and early loading issues
- Added filters for Connect API to bypass authentication requirements
- Automatic Connect data setup on plugin activation