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

Add multiple recipients


Description Description


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

	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.





Permalink: