Can run cron event manually with WP-CLI but not with any plugin, unsure if it's being scheduled

by ellen   Last Updated November 09, 2018 00:08 AM - source

I have a cron event that I am able to manually run with

wp cron event run --all

When I go to my dashboard and go to WP-Crontrol OR Advanced Cron Manager, I can see my event listed and tell it to execute. But..I can tell that it doesn't execute my script because I don't see the updates that I want to see.

How can I make sure my event is actually being scheduled?

I have the following in my theme's functions.php:

add_action('init', 'my_activation');
add_action('update_user_hours', 'do_this_hourly');

function do_this_hourly(){
    //update some stuff 


function my_activation() {
    if ( !wp_next_scheduled( 'update_user_hours' ) ) {
        wp_schedule_event(time(), 'hourly', 'update_user_hours');

And I have the following in my wp-config.php:

define('ALTERNATE_WP_CRON', true);

Interestingly enough, my_update_function shows up as a cron event. I had the function name where my hook should have been previously. And now, when I try to remove the my_update_function event on Advanced Cron Manager, I get a wp-nonce error and am not allowed to remove it.

Any advice is appreciated. Thanks!

Related Questions

"Missed schedule" posting bug

Updated July 24, 2016 08:03 AM

How to Insert data with wp cron

Updated July 24, 2015 13:03 PM