WordPress normally checks scheduled tasks when someone visits the site. A system cron job can run those checks at a regular interval, including when the site has little traffic.
Prepare the command
Confirm the WordPress installation path and the PHP command required by the site. Use your hosting account’s SSH session, not a root crontab.
The example below assumes WordPress is in /home/username/public_html and PHP is at /usr/local/bin/php. Replace both paths as needed and check your plan’s allowed frequency.
Add the schedule
Open the account’s crontab:
crontab -eAdd this example line to check tasks every 30 minutes:
*/30 * * * * cd /home/username/public_html && /usr/local/bin/php -q wp-cron.phpSave using the instructions for the editor that opens. The && prevents PHP from running in the wrong directory if the directory change fails.
Check the saved entry:
crontab -lDisable visit-triggered checks
After confirming that the scheduled job runs successfully, back up wp-config.php and add this before WordPress loads:
define('DISABLE_WP_CRON', true);Update an existing definition rather than adding a duplicate. This disables visit-triggered checks, not the tasks themselves.
Verify scheduled tasks
Check scheduled posts or the application’s task logs. Allow jobs to finish before another run starts. If removing the system schedule later, restore visit-triggered checks so tasks continue to run.