Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Email_Engagement::merge_emails( string $list )
Handles email merge codes that can be used in the to, cc, and bcc fields
Parameters Parameters
- $list
-
(string) (Required) Unmerged, comma-separated list of emails
Return Return
(array)
Source Source
File: includes/emails/class.llms.email.engagement.php
private function merge_emails( $list ) { $codes = array( '{student_email}', '{admin_email}', ); $addresses = array( $this->student->ID, get_option( 'admin_email' ), ); $merged = str_replace( $codes, $addresses, $list ); $array = explode( ',', $merged ); return array_map( 'trim', $array ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Unknown. |
3.1.0 | Introduced. |