create_noptin_task( array $args )

Creates and returns a new task object.


Description Description

Note that this does not run the task. You will have to manually run it.

See also See also


Top ↑

Parameters Parameters

$args

(array) (Required) Required. A numerical array of task args. The first item is the name of the action while the other arguments will be passed to the action callbacks as parameters.


Top ↑

Return Return

(Noptin_Task)


Top ↑

Source Source

File: includes/functions.php

function create_noptin_task( array $args ) {

	// Create a new task.
	$task = new Noptin_Task( array_shift( $args ) );

	// Maybe attach some params to the task.
	return $task->set_params( $args );

}


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