Documentation

Cron Settings

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 one. 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 every certain period. Below are the instructions for the cPanel system. The procedure looks similar on other server management systems as well:
Log in to the cPanel hosting management system and select
Cpanel View Cron

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

Command:
wget -q -O - https://woo.shop.com/wp-cron.php >/dev/null 2>&1
Replace the phrase woo.shop.com with the address of your WooCommerce store.
In this example, we suggest executing cron every minute. On weaker and shared servers it is a good idea to set it 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:
Orh Job Cron View

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 as well.

The final result#

Thanks to the above steps, cron in your site will always be performed. Thanks to this you will be sure that the cyclic WordPress core tasks and those performed by WP Desk plugins will always be performed. Some of them are:

Not the solution you are looking for?

Please check other articles or open a support ticket.

Cookies preferences

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Necessary

Necessary
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.