Changeset 4961 for trunk/bp-activity/bp-activity-notifications.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r4817 r4961 7 7 * 8 8 * @package BuddyPress Activity 9 * @param str $content The content of the activity update 9 * @param str $content The content of the activity update 10 10 * @param int $poster_user_id The unique user_id of the user who sent the update 11 11 * @param int $activity_id The id of the activity update … … 18 18 $subject = ''; 19 19 $message = ''; 20 20 21 21 // Add the BP notification 22 22 bp_core_add_notification( $activity_id, $receiver_user_id, 'activity', 'new_at_mention', $activity->user_id ); 23 23 24 24 // Now email the user with the contents of the message (if they have enabled email notifications) 25 25 if ( 'no' != bp_get_user_meta( $receiver_user_id, 'notification_activity_new_mention', true ) ) { … … 69 69 wp_mail( $to, $subject, $message ); 70 70 } 71 71 72 72 do_action( 'bp_activity_sent_mention_email', $activity, $subject, $message, $content ); 73 73 }
Note: See TracChangeset
for help on using the changeset viewer.