Method | Description | |
---|---|---|
create_or_update_job ( $timestamp, $action, $args, $update_id = null ) | Create a post object for a given event | |
get_option ( ) | Override cron option requests with data from CPT | |
job_exists ( $timestamp, $action, $instance, $return_id = false ) | Check if a job post exists | |
mark_job_completed ( $timestamp, $action, $instance ) : boolean | Mark an event's CPT entry as completed | |
register_post_type ( ) | Register a private post type to store cron events | |
update_option ( $new_value, $old_value ) | Handle requests to update the cron option |
Method | Description | |
---|---|---|
class_init ( ) | Register hooks |
Method | Description | |
---|---|---|
convert_option ( $new_value ) | Save cron events in CPT | |
event_name ( $timestamp, $action, $instance ) | Generate a standardized post name from an event's arguments | |
event_title ( $timestamp, $action, $instance ) | Generate a standardized, human-readable post title from an event's arguments | |
find_unscheduled_jobs ( $new, $old ) | Identify jobs unscheduled using wp_unschedule_event() by comparing current value with previous | |
get_jobs ( $args ) | Retrieve list of jobs, respecting whether or not the CPT is registered | |
is_unscheduling ( ) | Determine if current request is a call to wp_unschedule_event() | |
mark_job_post_completed ( $job_post_id, $flush_cache = true ) | Set a job post to the "completed" status | |
unschedule_job ( $new_value, $old_value ) | Delete jobs that are unscheduled using wp_unschedule_event() |
public create_or_update_job ( $timestamp, $action, $args, $update_id = null ) |
public job_exists ( $timestamp, $action, $instance, $return_id = false ) |
public mark_job_completed ( $timestamp, $action, $instance ) : boolean | ||
$timestamp | int Unix timestamp | |
$action | string name of action used when the event is registered (unhashed) | |
$instance | string md5 hash of the event's arguments array, which Core uses to index the `cron` option | |
return | boolean |
public register_post_type ( ) |
public update_option ( $new_value, $old_value ) |