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
129           }
130      }
131 }
132
133 function wp_get_schedules() {
134      $schedules = array(
135           'hourly' => array( 'interval' => 3600, 'display' => __('Once Hourly') ),
136           'daily' => array( 'interval' => 86400, 'display' => __('Once Daily') ),
137      );
138      return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
139 }
140
141 function wp_get_schedule($hook, $args = array()) {
142      $crons = _get_cron_array();
143      $key = md5(serialize($args));
144      if ( empty($crons) )
145           return false;
146      foreach ( $crons as $timestamp => $cron ) {
147           if ( isset( $cron[$hook][$key] ) )