Avoid updating WordPress-Elementor language file
-
Hi.
My WordPress site that I am developing locally is set in Italian on both the backend and frontend. It seems that the Elementor file of the Italian translation (which updates automatically) creates problems with the editor (it doesn’t open it). I noticed that by removing all the Elementor files from the wp-content > language > plugin folder everything goes back to normal and the editor works fine. But, unfortunately, these files tend to continually REGENERATE themselves.
I tried two solutions, the first was to insert the following snippet into the function.php file:add_filter('auto_update_translation', '__return_false');the second is by trying to insert the following snippet:
function prevent_plugin_language_file_update($update, $plugin, $language) { // Specify the plugin folder name for which you want to prevent language file updates $plugin_folder = 'elementor'; // Check if the plugin being updated matches the specified folder name if (strpos($plugin, $plugin_folder) !== false) { $update = false; // Disable automatic language file updates for the specified plugin } return $update; } add_filter('auto_update_translation', 'prevent_plugin_language_file_update', 10, 3);Both solutions fail and the Elementor files are regenerated anyway.
How can I prevent this from happening?
PS: I would add that for me it is not necessary to have the Elementor plugin translated into Italian
Thank you
The topic ‘Avoid updating WordPress-Elementor language file’ is closed to new replies.