This guide is for advanced users.
Disabling the WP-cron function#
The built-in WordPress cron function is only called when customers visit your website, e.g. browse product pages. You may replace a WordPress cron with a server-side cron job. In this way, it will not depend on the traffic on your site.
Add the following line of code to wp-config.php. The file is located in your site's main directory. Insert the following line of code there:
define('DISABLE_WP_CRON', true);
Adding a command to a server cron#
In the next step, add the right task to the server cron. This task will automatically run the WP-cron function at regular intervals. Below are instructions for cPanel. The procedure is similar in other server management panels:
Log in to the cPanel hosting management system and select

In the next step, add a new cron task, giving the following sequence as a command:

Command:
wget -q -O - https://woo.shop.com/wp-cron.php >/dev/null 2>&1
Replace woo.shop.com with the address of your WooCommerce store.
In this example, we suggest executing cron once a minute. On weaker and shared servers it is a good idea to set it to run every 10 or 30 minutes.
You can use an external service to run the cron#
Sometimes, there is no option to add cron jobs in your hosting management panel. In that case, the free service cron-job.org (for example) will come in handy. A robot will automatically run wp-cron on your website according to the schedule. To set it, create an account with the service and add a new task:

Enter the address in the second field (with the address of your store ):
http://woo.shop.com/wp-cron.php
Please remember to replace the phrase woo.shop.com with the address of your WooCommerce store here, too.
The final result#
Thanks to the above steps, cron jobs on your site will run regularly. This ensures that recurring WordPress core tasks and tasks scheduled by WP Desk plugins will always be performed. Some of them are:
- sending emails with the Flexible Invoices PRO add-on: Advanced Sending
- creating basic invoices reports in WooCommerce
