Retrieve Cron schedule for hook with arguments.
<?php wp_get_schedule( $hook, $args ); ?>
// If you previously added for example: // wp_schedule_event( current_time( 'timestamp' ), 'hourly', 'my_hourly_event' ); $schedule = wp_get_schedule( 'my_hourly_event' ); // $schedule == 'hourly' // Or this if you created something like this: // wp_schedule_single_event( current_time( 'timestamp' ), 'hourly', 'my_hourly_event', array( 'some_arg' ) ); $schedule = wp_get_schedule( 'my_hourly_event', array( 'some_arg' ) ); // $schedule == 'hourly'
Since: 2.1.0
wp_get_schedule() is located in wp-includes/cron.php
.
Cron Functions: wp_schedule_event(), wp_schedule_single_event(), wp_clear_scheduled_hook(), wp_next_scheduled(), wp_unschedule_event(), wp_get_schedule()