Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2010 01:01:19 PM (16 years ago)
Author:
apeatling
Message:

Adding filters to all BuddyPress wp_mail() calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-notifications.php

    r2307 r2697  
    3333    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    3434
    35     // Send it
     35    /* Send the message */
     36    $to = apply_filters( 'friends_notification_new_request_to', $to );
     37    $subject = apply_filters( 'friends_notification_new_request_subject', $subject );
     38    $message = apply_filters( 'friends_notification_new_request_message', $message );
     39
    3640    wp_mail( $to, $subject, $message );
    3741}
    38 
    3942
    4043function friends_notification_accepted_request( $friendship_id, $initiator_id, $friend_id ) {
     
    6770    $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    6871
    69     // Send it
     72    /* Send the message */
     73    $to = apply_filters( 'friends_notification_accepted_request_to', $to );
     74    $subject = apply_filters( 'friends_notification_accepted_request_subject', $subject );
     75    $message = apply_filters( 'friends_notification_accepted_request_message', $message );
     76
    7077    wp_mail( $to, $subject, $message );
    7178}
    7279
    73 
    7480?>
Note: See TracChangeset for help on using the changeset viewer.