wphooks.info - pre_get_scheduled_event

pre_get_scheduled_event

(trunk - 5.1-alpha-44286)

*** New in trunk ***

The hook occurs in the following file:

wp-includes/cron.php:
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
	 *
	 * @since 5.0.0
	 *
	 * @param null|bool $pre       Value to return instead. Default null to continue retrieving the event.
	 * @param string    $hook      Action hook of the event.
	 * @param array     $args      Array containing each separate argument to pass to the hook's callback function.
	 *                             Although not passed to a callback, these arguments are used to uniquely identify the
	 *                             event.
	 * @param int       $timestamp Unix timestamp (UTC) of the event.
	 */
	$pre = apply_filters( 'pre_get_scheduled_event', null, $hook, $args, $timestamp );
	if ( null !== $pre ) {
		return $pre;
	}

	$crons = _get_cron_array();
	$key   = md5( serialize( $args ) );

	if ( ! $timestamp || ! isset( $crons[ $timestamp ] ) ) {
		// No such event.