1 year ago
you can do something like. It will print nothing when got 0.
$count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
$count = empty( $count ) ? '' : $count;
and use this variable in your code.
It can be done will a few lines of code. Please refer the following URL:
It adds users with subscriber role to the group when created.
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service