BP_Email::get_to( string $transform = 'raw' )
Get the email’s “to” address and name.
Description Description
Unlike most other methods in this class, this one is not chainable.
Parameters Parameters
- $transform
-
(Optional) How to transform the return value. Accepts 'raw' (default) or 'replace-tokens'.
Default value: 'raw'
Return Return
(BP_Email_Recipient[]) "To" recipients.
Source Source
File: bp-core/classes/class-bp-email.php
public function get_to( $transform = 'raw' ) { return $this->get( 'to', $transform ); }
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |