Astra_WP_Background_Process::schedule_cron_healthcheck( mixed $schedules )

Schedule cron health check


Description


Parameters

$schedules

(mixed) (Required) Schedules.


Return

(mixed)


Source

File: inc/lib/batch-processing/class-astra-wp-background-process.php

		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,
				'display'  => sprintf( /* translators: %d: Minutes interval */ __( 'Every %d Minutes', 'astra' ), $interval ),
			);

			return $schedules;
		}

User Contributed Notes

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