Solved, although in a pretty poor manner.
If I move the scheduler function
wp_schedule_single_event( time() + 600, 'mail_event_hook' );
into functions.php it starts working. Not sure why, but this is the curse of self taught developers.
Solved, although in a pretty poor manner.
If I move the scheduler function
wp_schedule_single_event( time() + 600, 'mail_event_hook' );
into functions.php it starts working. Not sure why, but this is the curse of self taught developers.