Support » Plugins » Crons not working

  • Hi,

    I am trying to get wordpress to call a function called “wpr_cronjob” every hour in my plugin. So I registered a activation hook and in the book I call the following function:

    wp_schedule_event(time(), ‘hourly’, ‘wpr_cronjob’);

    The function is not getting called because every time the function is called, I will receive an email (which I am not). I have set up a cronjob on my linux server to run wp-cron.php every 5 minutes and the function is still not getting called. Could you please tell me what I am doing wrong?

    Thanks in advacne,


Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem here, both with a plugin that I have written myself and another plugin. If I schedule posts, that works great. Just “plugin crons” don’t seem to be called at all.

    Is there any way I can find out why?

    Is there a CRON Log?

    I have the same problem in one of my plugin :/

    I email the mailing list and then found out the solution as follows:

    First add the function to be called to a action


    some_action can be replaced with any random name for an action you can think of.

    Then schedule the action:

    wp_schedule_event(time(), ‘hourly’, ‘some_action’);

    The key is to schedule actions not functions.

    Further more the core-control plugin can be used to see the currently scheduled crons.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Crons not working’ is closed to new replies.