wphooks.info - pre_next_scheduled

pre_next_scheduled

(trunk - 5.1-alpha-44286)

*** New in trunk ***

The hook occurs in the following file:

wp-includes/cron.php:
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
	 * process, causing the function to return the filtered value instead.
	 *
	 * Pass the timestamp of the next event if it exists, false if not.
	 *
	 * @since 5.0.0
	 *
	 * @param null|bool $pre       Value to return instead. Default null to continue unscheduling the event.
	 * @param string    $hook      Action hook of the event.
	 * @param array     $args      Arguments to pass to the hook's callback function.
	 */
	$pre = apply_filters( 'pre_next_scheduled', null, $hook, $args );
	if ( null !== $pre ) {
		return $pre;
	}

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

	if ( ! empty( $crons ) ) {