Wp cron event is set but the function isn’t getting fired
I’m a WP cron beginner trying to make some test function. So i have a test page with this code: if ( ! wp_next_scheduled( ‘do_this_in_an_hour’ ) ) { wp_schedule_single_event( time() + 40, ‘do_this_in_an_hour’ ); } And for the testing: echo wp_next_scheduled( ‘do_this_in_an_hour’ ); echo ‘<pre>’; $cron_jobs = get_option( ‘cron’ ); var_dump($cron_jobs); echo ‘</pre>’; And in … Read more