LLMS_Email::add_recipients( array $recipients = array() )

Add multiple recipients


Parameters Parameters

$recipients

(array) (Optional) array of recipient information

Default value: array()


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/emails/class.llms.email.php

234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
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'] );
        }
    }
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.