diff --git a/src/bp-groups/bp-groups-functions.php b/src/bp-groups/bp-groups-functions.php
index 6dc11b7d8..5b845eccc 100644
a
|
b
|
function groups_edit_base_group_details( $args = array() ) { |
388 | 388 | } |
389 | 389 | |
390 | 390 | if ( $r['notify_members'] ) { |
391 | | groups_notification_group_updated( $group->id, $old_group ); |
| 391 | /** |
| 392 | * Filters whether to send group update notifications to members. |
| 393 | * |
| 394 | * @since 12.0.0 |
| 395 | * |
| 396 | * @param bool $notify_members Whether to send notifications. |
| 397 | * @param int $group_id ID of the group being updated. |
| 398 | * @param BP_Groups_Group $old_group Group object before the update. |
| 399 | */ |
| 400 | $should_notify = apply_filters( 'bp_groups_notify_members_on_update', $r['notify_members'], $group->id, $old_group ); |
| 401 | if ( $should_notify ) { |
| 402 | groups_notification_group_updated( $group->id, $old_group ); |
| 403 | } |
392 | 404 | } |
393 | 405 | |
394 | 406 | /** |