This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Elementor Activation | |
* Description: Activates Elementor Pro - Not everybody have shell acces to run WP CLI or desire for eveybody to see license key. Manual activation is needed, and since Elementor wont add this, community will :) | |
* Plugin URI: https://github.com/elementor/elementor/issues/8667 | |
* Gist Plugin URI: https://gist.github.com/lupetalo/38e6d40b620b7da976c42c2d207c674a | |
* Version: 1.3 | |
*/ | |
add_filter('pre_http_request', function($request, $request_params, $url){ | |
if (strpos($url, 'my.elementor.com/api/v2/license/')!==false){ |