diff --git src/bp-groups/bp-groups-notifications.php src/bp-groups/bp-groups-notifications.php
index 9d1c62f..5a7a54f 100644
|
|
function groups_notification_group_updated( $group_id = 0, $old_group = null ) { |
77 | 77 | 'group.name' => $group->name, |
78 | 78 | ), |
79 | 79 | ); |
80 | | bp_send_email( 'groups-details-updated', (int) $user_id, $args ); |
| 80 | bp_send_email( 'groups-details-updated', $user_id, $args ); |
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
… |
… |
function groups_notification_new_membership_request( $requesting_user_id = 0, $a |
138 | 138 | 'requesting-user.name' => bp_core_get_user_displayname( $requesting_user_id ), |
139 | 139 | ), |
140 | 140 | ); |
141 | | bp_send_email( 'groups-membership-request', (int) $admin_id, $args ); |
| 141 | bp_send_email( 'groups-membership-request', $admin_id, $args ); |
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
… |
… |
function groups_notification_membership_request_completed( $requesting_user_id = |
184 | 184 | ); |
185 | 185 | |
186 | 186 | if ( ! empty( $accepted ) ) { |
187 | | bp_send_email( 'groups-membership-request-accepted', (int) $requesting_user_id, $args ); |
| 187 | bp_send_email( 'groups-membership-request-accepted', $requesting_user_id, $args ); |
188 | 188 | } else { |
189 | | bp_send_email( 'groups-membership-request-rejected', (int) $requesting_user_id, $args ); |
| 189 | bp_send_email( 'groups-membership-request-rejected', $requesting_user_id, $args ); |
190 | 190 | } |
191 | 191 | } |
192 | 192 | add_action( 'groups_membership_accepted', 'groups_notification_membership_request_completed', 10, 3 ); |
… |
… |
function groups_notification_promoted_member( $user_id = 0, $group_id = 0 ) { |
237 | 237 | 'user.id' => $user_id, |
238 | 238 | ), |
239 | 239 | ); |
240 | | bp_send_email( 'groups-member-promoted', (int) $user_id, $args ); |
| 240 | bp_send_email( 'groups-member-promoted', $user_id, $args ); |
241 | 241 | } |
242 | 242 | add_action( 'groups_promoted_member', 'groups_notification_promoted_member', 10, 2 ); |
243 | 243 | |
… |
… |
function groups_notification_group_invites( &$group, &$member, $inviter_user_id |
288 | 288 | 'invites.url' => esc_url( $invited_link . '/invites/' ), |
289 | 289 | ), |
290 | 290 | ); |
291 | | bp_send_email( 'groups-invitation', (int) $invited_user_id, $args ); |
| 291 | bp_send_email( 'groups-invitation', $invited_user_id, $args ); |
292 | 292 | } |
293 | 293 | |
294 | 294 | /** Notifications *************************************************************/ |