LLMS_Email::add_recipients( array $recipients = array() )
Add multiple recipients
Parameters Parameters
- $recipients
-
(array) (Optional) array of recipient information
Default value: array()
Return Return
(void)
Source Source
File: includes/emails/class.llms.email.php
public function add_recipients( $recipients = array() ) {
foreach ( $recipients as $data ) {
$data = wp_parse_args(
$data,
array(
'address' => '',
'type' => 'to',
'name' => '',
)
);
if ( $data['address'] ) {
$this->add_recipient( $data['address'], $data['type'], $data['name'] );
}
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |