PHP Class Automattic\WP\Cron_Control\Internal_Events

Inheritance: extends Singleton
Show file Open project: Automattic/vip-mu-plugins-public Class Usage Examples

Public Methods

Method Description
clean_legacy_data ( ) Remove data related to how Core manages cron in the absence of this plugin
confirm_scheduled_posts ( ) Ensure scheduled posts have a corresponding cron job to publish them
force_publish_missed_schedules ( ) Published scheduled posts that miss their schedule
is_internal_event ( $action ) Events that are always run, regardless of how many jobs are queued
purge_completed_events ( ) Delete event objects for events that have run
register_internal_events_schedules ( $schedules ) Include custom schedules used for internal jobs
schedule_internal_events ( ) Schedule internal jobs

Protected Methods

Method Description
class_init ( ) Register hooks

Method Details

class_init() protected method

Register hooks
protected class_init ( )

clean_legacy_data() public method

Remove data related to how Core manages cron in the absence of this plugin
public clean_legacy_data ( )

confirm_scheduled_posts() public method

Ensure scheduled posts have a corresponding cron job to publish them

force_publish_missed_schedules() public method

Published scheduled posts that miss their schedule

is_internal_event() public method

Events that are always run, regardless of how many jobs are queued
public is_internal_event ( $action )

purge_completed_events() public method

Given volume of events that can be created, waiting for wp_scheduled_delete(), which defaults to a trailing 30-day delete, is unwise

register_internal_events_schedules() public method

Include custom schedules used for internal jobs
public register_internal_events_schedules ( $schedules )

schedule_internal_events() public method

Schedule internal jobs