bp_email_get_salutation( array $settings = array() )

Gets the Recipient Salutation.


Description Description


Parameters Parameters

$settings

(Optional) Email Settings.

Default value: array()


Top ↑

Return Return

(string) The Recipient Salutation.


Top ↑

Source Source

File: bp-core/bp-core-template.php

	function bp_email_get_salutation( $settings = array() ) {
		$token = '{{recipient.name}}';

		/**
		 * Filters The Recipient Salutation inside the Email Template.
		 *
		 * @since 2.5.0
		 *
		 * @param string $value    The Recipient Salutation.
		 * @param array  $settings Email Settings.
		 * @param string $token    The Recipient token.
		 */
		return apply_filters( 'bp_email_get_salutation', sprintf( _x( 'Hi %s,', 'recipient salutation', 'buddypress' ), $token ), $settings, $token );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Checks current BP Email type schema to eventually use the unnamed salutation.
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.