get_schedule filter-hookWP 5.1.0

Filters the schedule for a hook.

Usage

add_filter( 'get_schedule', 'wp_kama_get_schedule_filter', 10, 3 );

/**
 * Function for `get_schedule` filter-hook.
 * 
 * @param string|false $schedule Schedule for the hook. False if not found.
 * @param string       $hook     Action hook to execute when cron is run.
 * @param array        $args     Arguments to pass to the hook's callback function.
 *
 * @return string|false
 */
function wp_kama_get_schedule_filter( $schedule, $hook, $args ){

	// filter...
	return $schedule;
}
$schedule(string|false)
Schedule for the hook. False if not found.
$hook(string)
Action hook to execute when cron is run.
$args(array)
Arguments to pass to the hook's callback function.

Changelog

Since 5.1.0 Introduced.

Where the hook is called

wp_get_schedule()
get_schedule
wp-includes/cron.php 1105
return apply_filters( 'get_schedule', $schedule, $hook, $args );

Where the hook is used in WordPress

Usage not found.