I need details about wp-cron. I used wp_schedule_event
for automatically sending emails.
But wp_schedule_event is only triggered when a user visits our site.
How to make the cron run automatically?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It will run at first visit right after the scheduled time.
1.- yes, run automatically, but triggered by a visitor.
2.- it’s enough to sending email in a scheduled basis.
For a real cron behavior you can run a script using
crontab-q: quiet (no output). Just run the script. Otherwise you will have a lot of files in your server (wget pull files)
Tip: http://www.thegeekstuff.com/2011/07/php-cron-job/
Using cpanel: http://wiki.hostbillapp.com/index.php?title=Settings:_cPanel:_Cron_job