dg_tw_schedule

Add cron times.

Description

dg_tw_schedule( $schedules ); 

Parameters (1)

0. $schedules
The schedules.

Usage

  1. if ( !function_exists( 'dg_tw_schedule' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'twitter-posts-to-blog/functions.php'; 
  3.  
  4. // The schedules. 
  5. $schedules = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = dg_tw_schedule($schedules); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function dg_tw_schedule($schedules) { 
  2. $schedules['dg_tw_oneminute'] = array( 
  3. 'interval'=> 60,  
  4. 'display'=> __('Once Every Minute') 
  5. ); 
  6.  
  7. $schedules['dg_tw_fiveminutes'] = array( 
  8. 'interval'=> 300,  
  9. 'display'=> __('Once Every 5 Minutes') 
  10. ); 
  11.  
  12. $schedules['dg_tw_tenminutes'] = array( 
  13. 'interval'=> 600,  
  14. 'display'=> __('Once Every 10 Minutes') 
  15. ); 
  16.  
  17. $schedules['dg_tw_twentynminutes'] = array( 
  18. 'interval'=> 1200,  
  19. 'display'=> __('Once Every 20 Minutes') 
  20. ); 
  21.  
  22. $schedules['dg_tw_twicehourly'] = array( 
  23. 'interval'=> 1800,  
  24. 'display'=> __('Once Every 30 Minutes') 
  25. ); 
  26.  
  27. $schedules['dg_tw_weekly'] = array( 
  28. 'interval'=> 604800,  
  29. 'display'=> __('Once Every 7 Days') 
  30. ); 
  31.  
  32. $schedules['dg_tw_monthly'] = array( 
  33. 'interval'=> 2592000,  
  34. 'display'=> __('Once Every 30 Days') 
  35. ); 
  36.  
  37. return $schedules;