How to create real cron on your wordpress website

If you want to create a real Cron job, first you need to disable WP Cron, so is not executed every time someone loads one of your pages. To disable it, open the wp-config.php file in your main WordPress folder and add the following line before the “/* That’s all, stop editing! Happy blogging. */” line:

define('DISABLE_WP_CRON', true);

Add a Cron job entry through your web hosting control panel. You can set the job to run every 5 or 10 minutes. Please remember to replace yourdomain.com with your actual domain:

wget -q -O – http://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Each server has different ways of adding a Cron job, so if you are not sure how to do it you can ask your hosting provider to help you. You can check this short video if you are using

Want us to do this for you?