Guest User

Untitled

a guest
Jan 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $action_name = 'Hum'.'8';
  2. $action_name2 = 'Hum'.'4';
  3.  
  4. $event_array = array('8',$action_name);
  5. $event_array2 = array('4',$action_name2);
  6.  
  7. wp_schedule_single_event($timed4, 'Hope', $event_array);
  8. wp_schedule_single_event($timed4, 'Hope', $event_array2);
  9.  
  10. function uni($ID,$time) {
  11. //This should be able to create a unique action name.
  12. $action_name = 'Hum'.' '.$ID;
  13.  
  14. $event_array = array($ID,$action_name);
  15. add_action($action_name,'testing');
  16. wp_schedule_single_event($time, $action_name, $event_array);
  17. }
Add Comment
Please, Sign In to add comment