 Pieter
|
The new installer function of WPML 3.1.7 is superawesome and a massive improvement from the previous updating process!
There is however one issue and that is the renew nag. Especially for lifetime license holders it is quite a nuisance to see these nags (depending on the amount of Addons installed) with a negative number that doesn't make sense.
As plenty of developers also use it on sites of their clients, I decided to quickly put together a function that removes the nag.
Now I strongly advise to ONLY use this code snippet if you have the lifetime license.
My best guess is that soon this nag problem will be solved, but in the meantime and especially for use on client sites it might come in handy:
function so_remove_wpml_renew_nag_on_lifetime_license() {
remove_action( 'admin_notices', array( WP_Installer::instance(), 'setup_plugins_renew_warnings' ), 10 );
remove_action( 'admin_notices', array( WP_Installer::instance(), 'queue_plugins_renew_warnings' ), 20 );
}
add_action( 'admin_notices', 'so_remove_wpml_renew_nag_on_lifetime_license' );
Full snippet also available at: hidden link
|
 Ahmed Mohammed
Supporter
Timezone:
Europe/Rome (GMT+01:00)
|
Thanks for contacting us.
We've recently released 3.1.7.2. Can you please upgrade to it and check if our developers implemented this already ?
Thank You again!
|
 Pieter
|
Just attempted the auto upgrade, but will have to resort to manual upgrade due to:
Fatal error: Call to a member function get_current_language() on a non-object in /path/wp-content/plugins/wpml-string-translation/inc/functions.php on line 2372
|
 Pieter
|
Manual upgrade works and the issue now is finally resolved.
Pity that the changelog doesn't mention any of this...
|