ProMailerSubscriber::setCustom()
Set value for custom field while also sanitizing it
Usage
// basic usage
$bool = $proMailerSubscriber->setCustom(string $name, mixed $value);
// usage with all arguments
$bool = $proMailerSubscriber->setCustom(string $name, mixed $value, bool $saveNow = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$name | string | |
$value | mixed | |
$saveNow (optional) | bool | Save to DB now? Default:false |
Return value
boolReturns true if value was a custom field and modified, false if not
ProMailerSubscriber methods and properties
API reference based on ProcessWire core version 3.0.255