Noptin_Task::do_recurring( int $timestamp, int $interval )

Run the task repeatedly with a specified interval in seconds.


Description Description

See also See also


Top ↑

Parameters Parameters

$timestamp

(int) (Required) When the first instance of the job will run.

$interval

(int) (Required) How long to wait between runs.


Top ↑

Return Return

(int|bool) The action id on success. False otherwise.


Top ↑

Source Source

File: includes/class-noptin-task.php

	public function do_recurring( $timestamp, $interval ) {

		if ( ! $this->is_usable() || ! function_exists( 'as_schedule_recurring_action' ) ) {
			return false;
		}

		return as_schedule_recurring_action(
			$timestamp,
			$interval,
			$this->action,
			$this->params,
			$this->group
		);

	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.7Introduced.

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