Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Notification count if 0 dont display?

@henrywright

Moderator

Try this:

$count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
if ( $count > 0 ) {
    echo $count;
} else {
    // The notif count is 0.
}
Skip to toolbar