get_schedule filter-hook . WP 5.1.0
Filters the schedule for a hook.
Usage
add_filter( 'get_schedule', 'filter_function_name_6424', 10, 3 ); function filter_function_name_6424( $schedule, $hook, $args ){ // filter... return $schedule; }
- $schedule(string/true/false)
- Schedule for the hook. False if not found.
- $hook(string)
- Action hook to execute when cron is run.
- $args(array)
- Optional. Arguments to pass to the hook's callback function.
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
get_schedule
wp-includes/cron.php 887
return apply_filters( 'get_schedule', $schedule, $hook, $args );