What should I do if the wordpress wp_trp_machine_translation_log becomes very large after using the multilingual translatepress plugin in WordPress? (Resolved)

What should I do if the wordpress wp_trp_machine_translation_log becomes very large after using the multilingual translatepress plugin in WordPress? (Resolved)

After using the multilingual translatepress plugin in WordPress, it was found that the database had become very large. Upon inspection, it was discovered that wp_trp_machine_translation log was occupying 278MB
1. wp_trp_machine_translation. log is not useful and can be deleted directly. Command:
DELETE FROM wp_trp_machine_translation_log
2. How to prevent the wordpress plugin translatepress from generating wp_trp_machine_translation. log?
Step 1: Log in to the WordPress backend
Log in to your WordPress website backend using administrator credentials.
Step 2: Access the theme file editor
In the left menu, navigate to Appearance>Theme Editor.
Step 3: Find the functions.php file
In the file list on the right, find and click on the functions.php file. This is the functional file for your theme.
Step 4: Add code
Add the following code at the bottom of the functions.php file:
//Disable TranslatiePress from generating machine translation logs
add_filter( ‘trp_add_translation_log’, ‘__return_false’ );
After adding code, make sure not to delete or modify other code in the file to avoid causing issues with the theme.
Step 5: Save Changes
Click the update file button above the editor to make sure to save the changes made.
Step 6: Testing
Clean up cache (if using cache plugins).
Test your TranslatiePress plugin to see if any new translation logs have been generated.

What is Wireless AP Mode?
« Previous 10/12/2024 17:40
What is Gps Tracker / GPS Locator?
Next » 10/12/2024 17:40
en_USEnglish