Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre_reschedule_event

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
296       *     An object containing an event's data.
297       *
298       *     @type string       $hook      Action hook to execute when the event is run.
299       *     @type int          $timestamp Unix timestamp (UTC) for when to next run the event.
300       *     @type string|false $schedule  How often the event should subsequently recur.
301       *     @type array        $args      Array containing each separate argument to pass to the hook's callback function.
302       *     @type int          $interval  The interval time in seconds for the schedule. Only present for recurring events.
303       * }
304       */
305      $pre = apply_filters( 'pre_reschedule_event', null, $event );
306      if ( null !== $pre ) {
307           return $pre;
308      }
309
310      // Now we assume something is wrong and fail to schedule
311      if ( 0 == $interval ) {
312           return false;
313      }
314