Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
June 2, 2020 at 3:03 am in reply to: Elementor Pro 2.9.4 does not work until a valid licence is detected #22372
Insomnia
Participant@Les Osborne,
Yes. I used it for the current release.May 29, 2020 at 5:23 pm in reply to: Elementor Pro 2.9.4 does not work until a valid licence is detected #22356Insomnia
ParticipantI 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.phppublic 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.phppublic 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
May 29, 2020 at 10:18 am in reply to: Elementor Pro 2.9.4 does not work until a valid licence is detected #22351Insomnia
ParticipantI don’t know if it’s allowed/wanted because I am not sure for the license but if some higher instance here gives his/her/its okay I could tell you a way to remove the licence barrier.
-
This reply was modified 4 years, 10 months ago by
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)