Scheduling

Some providers block access to the system task scheduler by default. To solve this problem, you can use the following settings in wp-config.php

define('ALTERNATE_WP_CRON', true);
define('DISABLE_WP_CRON' , false);

Attention! using wp-cron does not guarantee the timely completion of the task, because the task will be processed only when someone has loaded the site page.

You can read more about wp-cron here: https://developer.wordpress.org/plugins/cron/