WC_Background_Process::schedule_cron_healthcheck( array $schedules )

Schedule cron healthcheck.


Description Description


Parameters Parameters

$schedules

(Required) Schedules.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/class-wc-background-process.php

161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
public function schedule_cron_healthcheck( $schedules ) {
    $interval = apply_filters( $this->identifier . '_cron_interval', 5 );
 
    if ( property_exists( $this, 'cron_interval' ) ) {
        $interval = apply_filters( $this->identifier . '_cron_interval', $this->cron_interval );
    }
 
    // Adds every 5 minutes to the existing schedules.
    $schedules[ $this->identifier . '_cron_interval' ] = array(
        'interval' => MINUTE_IN_SECONDS * $interval,
        /* translators: %d: interval */
        'display'  => sprintf( __( 'Every %d minutes', 'woocommerce' ), $interval ),
    );
 
    return $schedules;
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.