Changeset 10499
- Timestamp:
- 02/03/2016 09:44:18 AM (9 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-filters.php
r10497 r10499 243 243 } 244 244 add_filter( 'nav_menu_css_class', 'bp_core_menu_highlight_nav_menu_item', 10, 2 ); 245 246 /**247 * Set "From" name in outgoing email to the site name.248 *249 * @since 1.0.0250 *251 * @uses bp_get_option() fetches the value for a meta_key in the wp_X_options table.252 *253 * @return string The blog name for the root blog.254 */255 function bp_core_email_from_name_filter() {256 257 /**258 * Filters the "From" name in outgoing email to the site name.259 *260 * @since 1.2.0261 *262 * @param string $value Value to set the "From" name to.263 */264 return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) );265 }266 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );267 245 268 246 /** -
trunk/src/bp-core/deprecated/2.5.php
r10494 r10499 12 12 * Set "From" name in outgoing email to the site name. 13 13 * 14 * @deprecated 2.5.0 14 * @since 1.0.0 15 * @deprecated 2.5.0 Not used. Was hooked to WordPress' "wp_mail_from_name" action. 16 * Use the "bp_email_get_from" action instead. 15 17 * 16 18 * @return string The blog name for the root blog. … … 23 25 * 24 26 * @since 1.2.0 25 * @deprecated 2.5.0 Not used any more in BuddyPress core, but left intact for old plugins. 26 * This used to be hooked to WordPress' "wp_mail_from_name" action. 27 * @deprecated 2.5.0 Not used. 27 28 * 28 29 * @param string $value Value to set the "From" name to.
Note: See TracChangeset
for help on using the changeset viewer.