This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs help configuring WPML so that automatic translations run continuously in the background, without requiring them to log into the WordPress admin. Currently, translations only process when logged into the WordPress admin.
Solution:
1. Disable WordPress's built-in
wp_cron
: Add the following line to your
wp-config.php
file, ideally just above the
/* That's all, stop editing! Happy publishing. */
line:
define('DISABLE_WP_CRON', true);This stops
wp_cron
from being triggered by regular site visits.
2. Set up a server-side cron job: Access your hosting control panel to create a new cron job. The command to run
wp-cron.php
typically looks like this:
wget -q -O - https://your-domain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Replace
https://your-domain.com
with your actual website's URL. Set this cron job to run frequently, for example, every 5 or 10 minutes.
Note: There are no specific WPML hooks or WP-CLI commands designed to directly trigger or force automatic translation processing independently of the general
wp_cron
system. The server-side cron job approach is the most reliable method for ensuring all WordPress and WPML background tasks, including automatic translations, run consistently.
If this solution does not resolve your issue, or if it seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 2 replies, has 0 voices.
Last updated by 1 week, 2 days ago.
Assisted by: Carlos Rojas.