• Resolved jetxpert

    (@jetxpert)


    Hi @edo888,

    As you know, WordPress is constantly updating translations in the back-end.

    If we disable these translation auto-updates, will this affect your plugin? If not, how can we best do this?

    So far, found filter below. Haven’t tested it yet.

    // Disable translation updates
    add_filter( 'auto_update_translation', '__return_false' );

    If possible, prefer a snippet that can be added to our functions.php file.

    I assume these auto-updates are for websites published in a language other than English.

    As always, your input is appreciated.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jetxpert

    (@jetxpert)

    Update:

    Entered above filter in our functions.php file. Unfortunately, it didn’t work (i.e. translation auto updates continued to appear in our WP dashsboard).

    We are now trying an updated version of the above filter (see below). We’re waiting to see if it works. In any case, your input is still appreciated!

    // Disable translation updates
    if( function_exists('add_filter') ) {
        add_filter( 'auto_update_translation', '__return_false' );
    }
    • This reply was modified 4 years, 7 months ago by jetxpert.
    Plugin Author edo888

    (@edo888)

    Hi,

    Not sure why you need it and it this is something not related to GTranslate.

    I have checked this: https://www.ads-software.com/support/article/configuring-automatic-background-updates/ and I believe you have to add it inside some enabled plugin, so it can be executed also for your admin backend.

    You may also try to add this into wp-config.php file, but this is not documented:

    define( 'WP_AUTO_UPDATE_TRANSLATION', false );

    To really find it out, you have to read the source code files of the wordpress updater and find out how it is actually used.

    Thanks! ??

    Thread Starter jetxpert

    (@jetxpert)

    Hi @edo888,

    Your solution works. Benefits:

    (1) Fewer emails auto-generated by WordPress telling us that “Translations” have been updated.

    (2) Fewer cron-generated HTTP calls.

    (3) Slightly faster website.

    Thank you. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Translation Auto -Updates – Can We Disable?’ is closed to new replies.