bp_core_email_from_address_filter

  • apply_filters( 'bp_core_email_from_address_filter', 'noreply@' . $domain[2] )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-filters.php :: Trac Source Line: 55
       *
       * Sets the "From" address in emails sent
       *
       * @package BuddyPress Core
       * @return noreply@sitedomain email address
       */
      function bp_core_email_from_address_filter() {
      	$domain = (array) explode( '/', site_url() );
      
      	return apply_filters( 'bp_core_email_from_address_filter', 'noreply@' . $domain[2] );
      }
      add_filter( 'wp_mail_from', 'bp_core_email_from_address_filter' );
      
      /**
       * bp_core_allow_default_theme()
       *
       * On multiblog installations you must first allow themes to be activated and show
       * up on the theme selection screen. This function will let the BuddyPress bundled
       * themes show up on the root blog selection screen and bypass this step. It also
       * means that the themes won't show for selection on other blogs.
      

Comments are closed.