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


(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


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


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