Skip to content

Instantly share code, notes, and snippets.

@imranhoshain
Last active November 26, 2025 07:11
Show Gist options
  • Select an option

  • Save imranhoshain/2b85d897db79017a1dec8d42c1b69479 to your computer and use it in GitHub Desktop.

Select an option

Save imranhoshain/2b85d897db79017a1dec8d42c1b69479 to your computer and use it in GitHub Desktop.
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
// License Bypass - Define class first
if ( ! class_exists( 'UE_Agency_Bypass' ) ) {
class UE_Agency_Bypass {
public function __call( $name, $arguments ) {
switch ( $name ) {
case 'can_use_premium_code':
case 'can_use_premium_code__premium_only':
case 'has_active_valid_license':
case 'is_premium':
case 'is_registered':
case 'is_paying':
return true;
case 'is_trial':
case 'is_activation_mode':
case 'is_activation_page':
case 'is_free_plan':
return false;
default:
return true;
}
}
public function add_action() {
}
public function add_filter() {
}
public function override_i18n() {
}
}
}
if ( ! function_exists( 'uefe_fs' ) ) {
// Create a helper function for easy SDK access - AGENCY BYPASS
function uefe_fs() {
global $uefe_fs;
if ( ! isset( $uefe_fs ) ) {
// Agency bypass - return mock object instead of real Freemius
$uefe_fs = new UE_Agency_Bypass();
}
return $uefe_fs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment