Skip to content

Instantly share code, notes, and snippets.

@sermalefico
Created May 20, 2020 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sermalefico/a7ab4c08bf3b4f7dc0eca4ddec180eed to your computer and use it in GitHub Desktop.
Save sermalefico/a7ab4c08bf3b4f7dc0eca4ddec180eed to your computer and use it in GitHub Desktop.
Fix Elementor Pro when go.elementor.com is down. (overrides license check)
/*
* Place this code in your functions.php file in your Child Theme.
* Use at your own risk.
*/
add_filter('pre_transient_elementor_pro_license_data', function($pre_transient) {
$license_data = [
'license' => 'valid',
'payment_id' => '1',
'license_limit' => '1',
'site_count' => '1',
'activations_left' => '0',
'expires' => 'lifetime'
];
return $license_data;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment