Make sure invoices go out on time
HandShake sends your scheduled invoices in a daily run at about 08:00 UTC. The run is started by WordPress’s built-in scheduler, called WP-Cron. This page explains how to make that run reliable. Setup takes about two minutes.
Is it working?
Look at the bottom of the HandShake → Dashboard:
Automatic sending: last run today 08:04
If that’s a recent time, everything is fine and you don’t need to do anything.
HandShake also warns you on every admin screen when something is wrong:
- “Automatic invoicing hasn’t run since …”: the scheduler isn’t running at all, so scheduled invoices aren’t going out. Follow the steps below.
- “Automatic invoicing has run hours late lately”: it works, but late. Follow the steps below to make it run on time.
Why it happens
WP-Cron isn’t a real clock. It only runs when someone visits your website.
- On a quiet site, the daily run waits for the first visitor after 08:00. That can be hours later.
- Some hosts and caching setups switch WP-Cron off (
DISABLE_WP_CRON). Nothing runs until something calls it.
The fix is a cron job: a timer that calls WordPress’s scheduler every few minutes, whether or not anyone visits.
Option 1: a cron job in your hosting panel (recommended)
Hostinger: go to hPanel → Advanced → Cron Jobs, choose Custom, and add:
wget -q -O - "https://yoursite.com/wp-cron.php?doing_wp_cron" >/dev/null 2>&1
Replace yoursite.com with your own site’s address, and set it to run every 15 minutes.
Other hosts (cPanel, Plesk…): look for Cron Jobs or Scheduled Tasks and add the same command. If wget isn’t available, use:
curl -s "https://yoursite.com/wp-cron.php?doing_wp_cron" >/dev/null 2>&1
Option 2: a free online service
If your host doesn’t offer cron jobs, use a free service like cron-job.org:
- Create a free account and add a new cron job.
- URL:
https://yoursite.com/wp-cron.php?doing_wp_cron - Schedule: every 15 minutes.
- Turn on “Notify me when the job fails”. You’ll then also hear about it if your site is down.
Optional: switch off visit-triggered WP-Cron
Once your cron job runs, you can stop WordPress from also checking on every visit, which makes pages slightly faster. Add this line to wp-config.php, above the line that says “That’s all, stop editing!”:
define( 'DISABLE_WP_CRON', true );
Only do this once your cron job is running. Without one, nothing scheduled will run at all.
After setting it up
The next morning, check the Dashboard line. It should show a run at about 08:00 UTC, and any warning disappears on its own.
Good to know
- Missed a day? HandShake catches up on missed send days for up to 7 days, so invoices go out late rather than never.
- Big runs are sent in batches of 20, a minute apart, so they stay within your host’s limits.
- After each run that sent something, you get a summary email with what went out and anything that failed.
- Emails not arriving? That’s a different problem: see Email delivery.