# automatorwp/5.8.5/includes/cron.php

AutomatorWP – No-Code Workflow Automation, Integration &amp; Webhooks Plugin, now with AI, version 5.8.5. 66 lines.

- Page: https://pluginprobe.com/plugins/automatorwp/5.8.5/code/includes/cron.php
- Raw: https://pluginprobe.com/plugins/automatorwp/5.8.5/raw/includes/cron.php
- Modified: 2026-08-20T08:53:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/automatorwp/5.8.5/code/includes/cron.php#L10-L20`.

```php
<?php
/**
 * Cron
 *
 * @package     AutomatorWP\Cron
 * @author      AutomatorWP <contact@automatorwp.com>, Ruben Garcia <rubengcdev@gmail.com>
 * @since       1.0.0
 */
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) exit;

require_once AUTOMATORWP_DIR . 'includes/cron/auto-logs-cleanup.php';
require_once AUTOMATORWP_DIR . 'includes/cron/run-scheduled-automations.php';

/**
 * Register custom cron schedules
 *
 * @since 1.0.0
 *
 * @param array $schedules
 *
 * @return array
 */
function automatorwp_cron_schedules( $schedules ) {

    $schedules['five_minutes'] = array(
        'interval' => 300,
        'display'  => __( 'Every five minutes', 'automatorwp' ),
    );

    return $schedules;

}
add_filter( 'cron_schedules', 'automatorwp_cron_schedules' );

/**
 * Register schedule events
 *
 * @since 1.3.2
 */
function automatorwp_schedule_events() {

    /**
     * Action triggered on activation to schedule events
     *
     * @since 1.3.2
     */
    do_action( 'automatorwp_schedule_events' );

}

/**
 * Clear scheduled events
 *
 * @since 1.3.2
 */
function automatorwp_clear_scheduled_events() {

    /**
     * Action triggered on deactivation to clear scheduled events
     *
     * @since 1.3.2
     */
    do_action( 'automatorwp_clear_scheduled_events' );

}
```
