Noptin_Task::do_once( int $timestamp )

Run the task once at some defined point in the future.


Description Description

See also See also


Top ↑

Parameters Parameters

$timestamp

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


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/class-noptin-task.php

	public function do_once( $timestamp ) {

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

		return as_schedule_single_action(
			$timestamp,
			$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