Skip to:
Content

BuddyPress.org

Changeset 3362


Ignore:
Timestamp:
11/06/2010 02:32:52 PM (14 years ago)
Author:
boonebgorges
Message:

Adds do_action hooks after notification emails are sent throughout BuddyPress. Fixes #2397. Props r-a-y and jessica120 for prodding

Location:
trunk
Files:
6 edited

Legend:

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

    r3300 r3362  
    5252        }
    5353    }
     54   
     55    do_action( 'bp_activity_sent_mention_email', $usernames, $subject, $message, $content, $poster_user_id, $activity_id );
    5456}
    5557add_action( 'bp_activity_posted_update', 'bp_activity_at_message_notification', 10, 3 );
     
    9496
    9597        wp_mail( $to, $subject, $message );
     98       
     99        do_action( 'bp_activity_sent_reply_to_update_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params );
    96100    }
    97101
     
    137141
    138142        wp_mail( $to, $subject, $message );
     143       
     144        do_action( 'bp_activity_sent_reply_to_reply_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params );
    139145    }
    140146}
  • trunk/bp-core/bp-core-filters.php

    r3358 r3362  
    206206
    207207    wp_mail( $to, $subject, $message, $message_headers );
     208   
     209    do_action( 'bp_core_sent_blog_signup_email', $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
    208210
    209211    // Return false to stop the original WPMU function from continuing
     
    239241    wp_mail( $to, $subject, $message, $message_headers );
    240242
     243    do_action( 'bp_core_sent_user_signup_email', $admin_email, $subject, $message, $user, $user_email, $key, $meta );
     244
    241245    // Return false to stop the original WPMU function from continuing
    242246    return false;
  • trunk/bp-core/bp-core-signup.php

    r3358 r3362  
    592592
    593593    wp_mail( $to, $subject, $message, $message_headers );
     594   
     595    do_action( 'bp_core_sent_user_validation_email', $admin_email, $subject, $message, $user_id, $user_email, $key );
    594596}
    595597
  • trunk/bp-friends/bp-friends-notifications.php

    r3300 r3362  
    4040
    4141    wp_mail( $to, $subject, $message );
     42   
     43    do_action( 'bp_friends_sent_request_email', $friend_id, $subject, $message, $friendship_id, $initiator_id );
    4244}
    4345
     
    7880
    7981    wp_mail( $to, $subject, $message );
     82   
     83    do_action( 'bp_friends_sent_accepted_email', $initator_id, $subject, $message, $friendship_id, $friend_id );
    8084}
    8185
  • trunk/bp-groups/bp-groups-notifications.php

    r3300 r3362  
    3939        unset( $message, $to );
    4040    }
     41   
     42    do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, $message, $group_id );
    4143}
    4244
     
    8587
    8688    wp_mail( $to, $subject, $message );
     89   
     90    do_action( 'bp_groups_sent_membership_request_email', $admin_id, $subject, $message, $requesting_user_id, $group_id, $membership_id );
    8791}
    8892
     
    139143
    140144    wp_mail( $to, $subject, $message );
     145   
     146    do_action( 'bp_groups_sent_membership_approved_email', $requesting_user_id, $subject, $message, $group_id );
    141147}
    142148
     
    185191
    186192    wp_mail( $to, $subject, $message );
     193   
     194    do_action( 'bp_groups_sent_promoted_email', $user_id, $subject, $message, $group_id );
    187195}
    188196add_action( 'groups_promoted_member', 'groups_notification_promoted_member', 10, 2 );
     
    238246        wp_mail( $to, $subject, $message );
    239247    }
     248   
     249    do_action( 'bp_groups_sent_invited_email', $invited_user_id, $subject, $message, $group );
    240250}
    241251
     
    297307        }
    298308    }
     309   
     310    do_action( 'bp_groups_sent_mention_email', $usernames, $subject, $message, $content, $poster_user_id, $group_id, $activity_id );
    299311}
    300312add_action( 'bp_groups_posted_update', 'groups_at_message_notification', 10, 4 );
  • trunk/bp-messages/bp-messages-notifications.php

    r3300 r3362  
    4444        wp_mail( $email_to, $email_subject, $email_content );
    4545    }
     46   
     47    do_action( 'bp_messages_sent_notification_email', $recipients, $email_subject, $email_content, $args );
    4648}
    4749
Note: See TracChangeset for help on using the changeset viewer.