wp_schedule_single_event
-
Hello,
I have a PHP file which has this,
<?php include('../../../wp-load.php'); wp_schedule_single_event(time()+60, 'delete_site_event', array('rand' => rand())); ?>
and then I have a plugin which has this,
<?php /* Plugin info, etc etc */ add_action('delete_site_event', 'delete_site'); function delete_site($rand) { echo $rand; } ?>
The events do not seem to be working at all. I’ve been searching through the database but I can’t seem to find anything. Does anyone know where they are located in the database? Is there anything wrong with my code?
- The topic ‘wp_schedule_single_event’ is closed to new replies.