Noptin_Background_Process::schedule_cron_healthcheck( mixed $schedules )

Schedule cron healthcheck


Parameters Parameters

$schedules

(mixed) (Required) Schedules.


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/class-noptin-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 Number of minutes. */
					__( 'Every %d Minutes', 'newsletter-optin-box' ), 
					$interval
				),
			);

			return $schedules;
		}

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation