ProMailerLists::add()

Add a new list with given title and return the ID for it

Usage

// basic usage
$int = $proMailerLists->add(string $title);

// usage with all arguments
$int = $proMailerLists->add(string $title, string $type = '');

Arguments

NameType(s)Description
$titlestring
$type (optional)string

List type, use ProMailer::listTypeRegular for regular or ProMailer::listTypePages for Users/Pages

Return value

int


ProMailerLists methods and properties

API reference based on ProcessWire core version 3.0.251