daily wp_schedule_event hook works after reload any page
daily wp_schedule_event hook works after reload any page
daily wp_schedule_event hook works after reload any page
Trash / Draft a WordPress custom post after custom date field expires
In cPanel run hosting environments you might have one PHP version used for your web applications but another one used for WP-CLI. Checking the PHP version, used by WP-CLI is done by running wp –info. You can check your PHP version in WordPress by going to the Health Check status page. It should be warning … Read more
export a csv file from the database with a cronjob
If it’s a one-time maintenance issue then run the code manually at a time you chose. If it’s a periodic maintenance task that might be heavy, use unix cron. Otherwise, wp-cron can be used. You’re probably using it more than you know already. This plugin is great for monitoring wp-cron.
How could an event previously scheduled with wp_schedule_event later become unscheduled?
Mmmh, some progress: I’m able to activate wp-cron by browser (not really clear, because I have a white screen…): anyway, if I browse wp-cron, jobs are correctly executed and rescheduled… Now I have to understand why crontab do not work…
This issue has been reported here : trac Sometimes, HTTP requests fail. In this case, in particular, on localhost. That’s part of the reason why we suppress them. I’ve personally never seen this. I think it’s isolated to this server configuration. (Nacin)
WP_Cron isn’t a real cron scheduler. What it does is schedule events, mark when they should be run, and wait for page traffic. When the site is loaded, it checks to see if any of these tasks need to be run (i.e. the time they were scheduled for has passed) and runs them. So you … Read more
The wp-cron process runs as a web request. PHP processes run from the web typically have a limit to their run time, like 60 seconds or so. Processes run as a command line process (like from a real cron) have no such limit. So the problem here is that the script takes too long to … Read more