Skip to:
Content

bbPress.org

Changeset 4268


Ignore:
Timestamp:
10/26/2012 06:47:09 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Subscriptions:

  • Allow for custom headers in subscription emails.
  • Fixes #1992.
  • Props gawain.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/functions.php

    r4249 r4268  
    10481048                        continue;
    10491049
     1050                // Custom headers
     1051                $headers = apply_filters( 'bbp_subscription_mail_headers', array() );
     1052
    10501053                // Get user data of this user
    10511054                $user = get_userdata( $user_id );
    10521055
    10531056                // Send notification email
    1054                 wp_mail( $user->user_email, $subject, $message );
     1057                wp_mail( $user->user_email, $subject, $message, $headers );
    10551058        }
    10561059
Note: See TracChangeset for help on using the changeset viewer.