bp_core_email_from_name_filter

  • apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ) )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-filters.php :: Trac Source Line: 40
       * bp_core_email_from_name_filter()
       *
       * Sets the "From" name in emails sent to the name of the site and not "WordPress"
       *
       * @package BuddyPress Core
       * @uses get_blog_option() fetches the value for a meta_key in the wp_X_options table
       * @return The blog name for the root blog
       */
      function bp_core_email_from_name_filter() {
       	return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ) );
      }
      add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
      
      /**
       * bp_core_email_from_name_filter()
       *
       * Sets the "From" address in emails sent
       *
       * @package BuddyPress Core
       * @return noreply@sitedomain email address
      

Comments are closed.