Changeset 2997
- Timestamp:
- 05/13/2010 07:41:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-filters.php
r2832 r2997 120 120 * Replace the generated password in the welcome email. 121 121 * This will not filter when the site admin registers a user. 122 * 123 * @uses locate_template To see if custom registration files exist 124 * @param string $welcome_email Complete email passed through WordPress 125 * @return string Filtered $welcome_email with 'PASSWORD' replaced by [User Set] 122 126 */ 123 127 function bp_core_filter_user_welcome_email( $welcome_email ) { … … 126 130 return $welcome_email; 127 131 132 // [User Set] Replaces 'PASSWORD' in welcome email; Represents value set by user 128 133 return str_replace( 'PASSWORD', __( '[User Set]', 'buddypress' ), $welcome_email ); 129 134 } … … 136 141 * Replace the generated password in the welcome email. 137 142 * This will not filter when the site admin registers a user. 143 * 144 * @uses locate_template To see if custom registration files exist 145 * @param string $welcome_email Complete email passed through WordPress 146 * @param integer $blog_id ID of the blog user is joining 147 * @param integer $user_id ID of the user joining 148 * @param string $password Password of user 149 * @return string Filtered $welcome_email with $password replaced by [User Set] 138 150 */ 139 151 function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) { … … 142 154 return $welcome_email; 143 155 156 // [User Set] Replaces $password in welcome email; Represents value set by user 144 157 return str_replace( $password, __( '[User Set]', 'buddypress' ), $welcome_email ); 145 158 }
Note: See TracChangeset
for help on using the changeset viewer.