diff --git src/bp-notifications/bp-notifications-functions.php src/bp-notifications/bp-notifications-functions.php
index 3bf0020..9a9c576 100644
|
|
function bp_notifications_get_unread_notification_count( $user_id = 0 ) { |
614 | 614 | * Filters the count of unread notification items for a user. |
615 | 615 | * |
616 | 616 | * @since 1.9.0 |
| 617 | * @since 2.7.0 Added user ID parameter. |
617 | 618 | * |
618 | | * @param int $count Count of unread notification items for a user. |
| 619 | * @param int $count Count of unread notification items for a user. |
| 620 | * @param int $user_id User ID for notifications count. |
619 | 621 | */ |
620 | | return apply_filters( 'bp_notifications_get_total_notification_count', (int) $count ); |
| 622 | return apply_filters( 'bp_notifications_get_total_notification_count', (int) $count, $user_id ); |
621 | 623 | } |
622 | 624 | |
623 | 625 | /** |