tribulant

Autoresponders Interval

Sep 14th, 2011
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. function autoresponder_scheduling() {
  2.         wp_clear_scheduled_hook($this -> pre . '_autoresponders');
  3.        
  4.         $schedules = wp_get_schedules();
  5.         $interval = $this -> get_option('autoresponderscheduling');
  6.         $new_timestamp = time() + $schedules[$interval]['interval'];
  7.         wp_schedule_event($new_timestamp, $interval, $this -> pre . '_autoresponders');
  8.        
  9.         return true;
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment