Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: cron_schedules

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
113           }
114      }
115 }
116
117 function wp_get_schedules() {
118      $schedules = array(
119           'hourly' => array( 'interval' => 3600, 'display' => __('Once Hourly') ),
120           'daily' => array( 'interval' => 86400, 'display' => __('Once Daily') ),
121      );
122      return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
123 }
124
125 function wp_get_schedule($hook, $args = array()) {
126      $crons = _get_cron_array();
127      $key = md5(serialize($args));
128      if ( empty($crons) )
129           return false;
130      foreach ( $crons as $timestamp => $cron ) {
131           if ( isset( $cron[$hook][$key] ) )