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
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' ] ); } } } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |