- Add this code to wp-config.php
define( 'DISABLE_WP_CRON', true );
- SSH into web server.
- Run bash command and an editor in nano will appear.
export VISUAL=nano; crontab -e
- Add line to editor. Note: to replace “yourdomain” with the URL of your WordPress site.
*/1 * * * * curl -s -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64)" https://yourdomain/wp-cron.php?doing_wp_cron > /dev/null 2>&1
- That’s it. This should run your WordPress cron jobs every 1 minute.
[Google Chrome Developer Tip] Prevent Warning “Your connection is not private” from appearing
This is probably more applicable to web developers. Many times when we try to run a localhost site with https in our local environment to emulate the production environment as close as possible, we will always run into a Google Chrome warning message "Your...
0 Comments