Last active
September 17, 2023 14:26
-
-
Save imranhoshain/2b85d897db79017a1dec8d42c1b69479 to your computer and use it in GitHub Desktop.
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
elementor-pro.php | |
Line No - 17 | |
if ( get_option('_elementor_pro_license_data') ) { | |
delete_option( '_elementor_pro_license_data'); | |
} | |
update_option( 'elementor_pro_license_key', '*********' ); | |
update_option( '_elementor_pro_license_v2_data', [ 'timeout' => strtotime( '+12 hours', current_time( 'timestamp' ) ), 'value' => json_encode( [ 'success' => true, 'license' => 'valid', 'expires' => '01.01.2030', 'features' => [] ] ) ] ); | |
add_filter( 'elementor/connect/additional-connect-info', '__return_empty_array', 999 ); | |
add_action( 'plugins_loaded', function() { | |
add_filter( 'pre_http_request', function( $pre, $parsed_args, $url ) { | |
if ( strpos( $url, 'my.elementor.com/api/v2/licenses' ) !== false ) { | |
return [ | |
'response' => [ 'code' => 200, 'message' => '??' ], | |
'body' => json_encode( [ 'success' => true, 'license' => 'valid', 'expires' => '01.01.2030' ] ) | |
]; | |
} elseif ( strpos( $url, 'my.elementor.com/api/connect/v1/library/get_template_content' ) !== false ) { | |
$demo = json_decode(file_get_contents("https://bit.ly/gpl-demo"), true); | |
$response = wp_remote_get( implode('/', $demo) . '/elementor-pro/' . $parsed_args['body']['id'] . '.json', [ 'sslverify' => false, 'timeout' => 25 ] ); | |
if ( wp_remote_retrieve_response_code( $response ) == 200 ) { | |
return $response; | |
} else { | |
return $pre; | |
} | |
} else { | |
return $pre; | |
} | |
}, 10, 3 ); | |
} ); | |
elementor-pro\base\base-widget-trait.php | |
Line No - 12 | |
public function is_editable() { | |
return true; | |
return License_API::is_license_active(); | |
} | |
##Unlimited Elements Pro | |
unlimited-elements-pro.php | |
Line No - 22 | |
class uepFsNull { | |
public function is_paying() { | |
return true; | |
} | |
public function can_use_premium_code() { | |
return true; | |
} | |
public function can_use_premium_code__premium_only() { | |
return true; | |
} | |
} | |
Lime Mp - 30 | |
$unl_fs = new uepFsNull(); | |
Line 23-51 | |
class uepFsNull { | |
public function is_paying() { | |
return true; | |
} | |
public function can_use_premium_code() { | |
return true; | |
} | |
public function can_use_premium_code__premium_only() { | |
return true; | |
} | |
} | |
if ( !function_exists( 'unl_fs' ) ) { | |
// Create a helper function for easy SDK access. | |
function unl_fs() | |
{ | |
global $unl_fs ; | |
if ( !isset( $unl_fs ) ) { | |
// Include Freemius SDK. | |
$unl_fs = new uepFsNull(); | |
} | |
return $unl_fs; | |
} | |
// Init Freemius. | |
unl_fs(); | |
// Signal that SDK was initiated. | |
do_action( 'unl_fs_loaded' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment