I have tried the following two approaches, each resulting that the cronjob gets added over and over again, until I remove the code. I literally had it scheduled hundreds of times...
if(!wp_next_scheduled('send_order_surveys')){
wp_schedule_event(time(), '30min', 'send_order_surveys');
}
if(!wp_get_schedule('send_order_surveys')){
wp_schedule_event(time(), '30min', 'send_order_surveys');
}
What am I doing wrong?