Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Wants to rename "notification" tab

@sundev

Participant

@modemlooper

// I got it working by putting these lines of your code on my existing function

if ( bp_is_user() && bp_user_has_access() ) {
$count = bp_notifications_get_unread_notification_count( bp_displayed_user_id() );
$class = ( 0 === $count ) ? ‘no-count’ : ‘count’;
$bp->bp_nav[‘notifications’][‘name’] = sprintf( __( ‘Alerts <span class=”%s”>%s</span>’, ‘buddypress’ ), esc_attr( $class ), number_format_i18n( $count ) );
}

I really appreciate your gesture. Thank you very much.

Skip to toolbar