WordPress – Cron job is not working

by | 11 Apr 2020 | PHP, Wordpress | 0 comments

  1. Add this code to wp-config.php
    define( 'DISABLE_WP_CRON', true );
  2. SSH into web server.
  3. Run bash command and an editor in nano will appear.
    export VISUAL=nano; crontab -e
  4. 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
  5. That’s it. This should run your WordPress cron jobs every 1 minute.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Related Posts

AppleiOSMobile PhonesObjective-CProgrammingSwiftTechnology
How to install Cocoapods for Objective-C/Swift development on Mac OS?

How to install Cocoapods for Objective-C/Swift development on Mac OS?

Steps to install Cocoapods Cocoapods is used in Xcode IDE for development from iOS apps using Objective-C/Swift. Cocoapods helps developers add external libraries to their iOS project easily. The following tutorial guides you on the steps to install Cocoapods on...

AndroidAndroidAppleiOSJavaMobile PhonesObjective-CProgramming
iPhone Camera
Complete overview of the mobile app development process (Infographic)

Complete overview of the mobile app development process (Infographic)

Clients always have the misperception that developing a mobile app is as easy as developing a mobile application would be a walk in a park without much effort involved. The following infographic pretty much sums up the total cost and effort for mobile app...