How to Disable Translation Updates Using Code Snippet
-
How can we disable WordPress’ “Translations” update function? Can this be done via code snippet?
We’ve tried what’s listed below, but are still getting translation updates from plugins such as MailPoet.
Thank you.
———————-
What We Tried (Not Working):
- Adding to our wp-config.php file:
define( 'WP_AUTO_UPDATE_TRANSLATION', false );- Using these code snippets:
function ray_disable_bp_auto_translation( $retval, $item ) { // disable automatic translations for BuddyPress if ( 'plugin' === $item->type && 'mailpoet' === $item->slug ) { return false; } return $retval;}add_filter( 'auto_update_translation', 'ray_disable_bp_auto_translation', 10, 2 );or
add_filter( 'async_update_translation', '__return_false' );
add_filter( 'auto_update_translation', '__return_false' );or
if( function_exists('add_filter') ){add_filter( 'auto_update_translation', '__return_false' );}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How to Disable Translation Updates Using Code Snippet’ is closed to new replies.