May 29, 2020 at 5:23 pm
#22356
Participant
I found the mentioned post. Indeed it doesn’t seem up to date.
Like described there you need to edit 2 files with 2 methods.
1)
In elementor-pro/license/admin.php
public static function get_license_key() { return trim( get_option( 'elementor_pro_license_key' ) ); }
to
public static function get_license_key() { return '123456'; }
2)
In elementor-pro/license/api.php
public static function get_license_data( $force_request = false ) { $license_data = get_transient( 'elementor_pro_license_data' ); if ( false === $license_data || $force_request ) { $body_args = [ 'edd_action' => 'check_license', 'license' => Admin::get_license_key(), ]; $license_data = self::remote_post( $body_args ); if ( is_wp_error( $license_data ) ) { $license_data = [ 'license' => 'http_error', 'payment_id' => '0', 'license_limit' => '0', 'site_count' => '0', 'activations_left' => '0', ]; self::set_license_data( $license_data, 30 * MINUTE_IN_SECONDS ); } else { self::set_license_data( $license_data ); } } return $license_data; }
to
public static function get_license_data( $force_request = false ) { return $license_data = [ 'license' => 'valid', 'expires' => '2100-12-31 23:59:59', 'payment_id' => 0, 'license_limit' => 100, 'site_count' => 100, 'activations_left' => 100, ]; }
The array of the get_license_data-method can contain more values but they are not needed
-
This reply was modified 4 years, 10 months ago by
Insomnia. Reason: syntax fix