apply_filters( 'bp_notifications_get_total_notification_count', int $count, int $user_id )

Filters the count of unread notification items for a user.

Description

Parameters

$count

(int) Count of unread notification items for a user.

$user_id

(int) User ID for notifications count.

Source

File: bp-notifications/bp-notifications-functions.php

Changelog

Changelog
Version Description
BuddyPress 2.7.0 Added user ID parameter. BuddyPress 2.7.0 Added user ID parameter.
BuddyPress 1.9.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.