Below is my slide modification to
@TW593 's solution above. Whenever the pro plugin is deactivated it removes the installed key from dB and reactivating the plugin using
@TW593's solution doesn't re-install it, there by disabling the pro features. With my modification below, it does. I've tested with:
Uipress Lite 3.2.03
Uipress Pro 3.1.02
@guilhermesilva This might also work for you.
Here's the code. Add it to the bottom of the
uipress-pro.php file.
PHP:
add_action( 'plugin_loaded', function() {
$options = get_option( 'uip-global-settings' );
if ( empty( $options['uip_pro'] ) ) {
$options['uip_pro'] = array(
'key' => '********-****-****-****-************',
'instance' => '****',
);
update_option( 'uip-global-settings', $options );
}
} );
set_transient( 'uip-data-connect', true );