bp_email_get_salutation( array $settings = array() )
Gets the Recipient Salutation.
Description
Parameters
- $settings
-
(Optional) Email Settings.
Default value: array()
Return
(string) The Recipient Salutation.
Source
File: bp-core/bp-core-template.php
function bp_email_get_salutation( $settings = array() ) { $token = '{{recipient.name}}<img src="{{recipient.avatar}}" style="border: 1px solid #b9babc;border-radius: 50%;margin-left: 12px;width: 34px;max-width: 34px;height: 34px;vertical-align: middle;" />'; /** * Filters The Recipient Salutation inside the Email Template. * * @since BuddyPress 2.5.0 * * @param string $value The Recipient Salutation. * @param array $settings Email Settings. * @param string $token The Recipient token. * @todo remove translatable text */ return apply_filters( 'bp_email_get_salutation', sprintf( __( '%s', 'buddyboss' ), $token ), $settings, $token ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.