Why You Need This Setup
WordPress has a built-in system called “WP-Cron” that runs background tasks. However, it only works when people visit your website. This means:
- If no one visits your site, background tasks don’t run
- When someone visits, their page loads slower because tasks run during their visit
- Our plugin works much better when tasks run every minute, reliably
The solution: Set up “Server Cron” – a system that runs background tasks automatically every minute, whether people visit your site or not.
What you’ll gain:
- Our plugin will work faster and more reliably
- Your website will load faster for visitors
- Background tasks happen on schedule, not randomly
Quick Setup Guide
Step 1: Turn Off WordPress’s Built-In System
You need to edit one file on your website. Don’t worry – it’s just adding one line of text.
What to do:
- Find your wp-config.php file (this is in your website’s main folder)
-
Add this line anywhere before the line that says
/* That's all, stop editing! Happy publishing. */:define('DISABLE_WP_CRON', true); - Save the file
How to access this file:
- cPanel users: Use File Manager, go to your website folder, find wp-config.php
- FTP users: Download wp-config.php, edit it, upload it back
- Ask your developer: If you’re not comfortable editing files, ask someone to help
Step 2: Set Up the Automatic Task Runner
This is where you tell your web server to run background tasks every minute.
If You Have cPanel (Most Common)
cPanel is the control panel many web hosts provide. If you’re not sure, log into your hosting account and look for a colorful dashboard.
- Log into cPanel
- Find “Cron Jobs” (usually in the “Advanced” section)
- Click “Create New Cron Job”
-
Set it to run every minute:
- Look for dropdown menus or fields for timing
- Set: Minute =
*, Hour =*, Day =*, Month =*, Weekday =* - Or find an option that says “Every minute”
-
In the “Command” box, paste this (replace
yourdomain.comwith your actual website):wget -q -O - https://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 - Save the cron job
If You Don’t Have cPanel
Contact your web hosting support and ask them to:
- “Set up a cron job that runs every minute”
- “The command should be:
wget -q -O - https://YOURDOMAIN.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1" - Replace YOURDOMAIN.com with your actual website address
Most hosting companies will do this for you quickly and free of charge. If you run into any issues or need help with this step, just contact us – we’re happy to guide you through it!
If You Have WP-CLI Available (Recommended)
WP-CLI is a command-line tool for WordPress that many hosting providers include. It’s often the most reliable method for running WordPress cron jobs.
How to Check if You Have WP-CLI
- Log into your hosting control panel or SSH
-
Try running this command:
wp --info - If you see WordPress information, you have WP-CLI available
Setting Up WP-CLI Cron
-
Find your website’s folder path (usually something like
/home/customer/www/yourdomain.com/public_html) - Create a cron job that runs every minute with this command (replace the path with your actual website folder):
cd /home/customer/www/yourdomain.com/public_html && wp cron event run --due-now >/dev/null 2>&1
Important Notes:
-
Replace
/home/customer/www/yourdomain.com/public_htmlwith your actual website folder path -
The
cdcommand is necessary – it tells the server to “go into” your website folder before running the WordPress command - This method is often more reliable than the wget method because it runs WordPress cron directly
For cPanel Users with WP-CLI:
- Go to Cron Jobs in cPanel
-
Set timing to every minute (Minute =
*, Hour =*, Day =*, Month =*, Weekday =*) - Use this command (with your actual path):
cd /home/customer/www/yourdomain.com/public_html && wp cron event run --due-now >/dev/null 2>&1
For Non-cPanel Users:
Ask your hosting support to set up a cron job with:
- Frequency: Every minute
-
Command:
cd /path/to/your/website && wp cron event run --due-now >/dev/null 2>&1 -
Tell them to replace
/path/to/your/websitewith your actual WordPress installation path
Why WP-CLI is Better:
- More reliable than wget method
- Directly integrates with WordPress
- Better error handling
- Preferred by most WordPress developers
Step 3: Check That It’s Working
Wait 10-15 minutes after setup, then:
- Go to your WordPress admin area
- Navigate to Tools → Scheduled Actions (this might be under different menu depending on your setup)
- Look for actions that are processing regularly
- Check that tasks are running every minute or two
If you don’t see regular activity, don’t worry! Contact us and we’ll help you troubleshoot.