Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Insomnia
    Participant

    @Les Osborne,
    Yes. I used it for the current release.

    Insomnia
    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 3 years, 11 months ago by Insomnia. Reason: syntax fix
    Insomnia
    Participant

    I 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.

Viewing 3 posts - 1 through 3 (of 3 total)