tribulant

Change Autoresponders Interval

Sep 14th, 2011
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. function autoresponder_scheduling() {
  2.         wp_clear_scheduled_hook($this -> pre . '_autoresponders');
  3.        
  4.         $schedules = wp_get_schedules();
  5.         $interval = "2minutes";
  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