Changeset 10609 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 02/17/2016 10:16:45 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r10497 r10609 3683 3683 } 3684 3684 } 3685 3686 /** 3687 * Prints the Recipient Salutation. 3688 * 3689 * @since 2.5.0 3690 * 3691 * @param array $settings Email Settings. 3692 */ 3693 function bp_email_the_salutation( $settings = array() ) { 3694 echo bp_email_get_salutation( $settings ); 3695 } 3696 3697 /** 3698 * Gets the Recipient Salutation. 3699 * 3700 * @since 2.5.0 3701 * 3702 * @param array $settings Email Settings. 3703 * @return string The Recipient Salutation. 3704 */ 3705 function bp_email_get_salutation( $settings = array() ) { 3706 $token = '{{recipient.name}}'; 3707 3708 /** 3709 * Filters The Recipient Salutation inside the Email Template. 3710 * 3711 * @since 2.5.0 3712 * 3713 * @param string $value The Recipient Salutation. 3714 * @param array $settings Email Settings. 3715 * @param string $token The Recipient token. 3716 */ 3717 return apply_filters( 'bp_email_get_salutation', sprintf( _x( 'Hi %s,', 'recipient salutation', 'buddypress' ), $token ), $settings, $token ); 3718 }
Note: See TracChangeset
for help on using the changeset viewer.