WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hate the way Wordpress Cron Jobs run, so I disabled them:

define('DISABLE_WP_CRON', true);

and want to run a real cron job instead:

wget http://www.myserver.com/wp-cron.php > /dev/null 2>&1

Question: can I then use wp_schedule_event to schedule my own stuff? Will they be triggered by the cron job?

Also, can I trigger the cronjob without wget?

share|improve this question
There was an answer with a discussion, and it just vanished. So, is this doable, or not? – Myself Oct 28 '12 at 0:40
It vanished, cause it was plainly wrong and I deleted it. wp-cron.php calls wp-load.php, hence can access all of WPs (frontend) functions and hence is runnable on its own (kudos @Otto). Now it's just a matter of triggering it from cron. wget and a URL will only be required if you wanted to run it from your local (or any other remote) machine (which would be pointless). Run it from your server's cron with an absolute path to it and you ought to be set. – Johannes Pille Oct 29 '12 at 5:02
@JohannesPille - So will triggering it directly though a cronjob run wp_schedule_event actions? – Myself Oct 29 '12 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.