bp_nouveau_get_nav_link_title()

Retrieve the title attribute of the link for the current nav item.

Description

Return

(string) The link title for the nav item.

Source

File: bp-templates/bp-nouveau/includes/template-tags.php

1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
function bp_nouveau_get_nav_link_title() {
    $bp_nouveau = bp_nouveau();
    $nav_item   = $bp_nouveau->current_nav_item;
    $title      = '';
 
    if ( 'directory' === $bp_nouveau->displayed_nav && ! empty( $nav_item->title ) ) {
        $title = $nav_item->title;
 
    } elseif (
        ( 'groups' === $bp_nouveau->displayed_nav || 'personal' === $bp_nouveau->displayed_nav )
        &&
        ! empty( $nav_item->name )
    ) {
        $title = $nav_item->name;
    }
 
    /**
     * Filter to edit the link title attribute of the nav.
     *
     * @since BuddyPress 3.0.0
     *
     * @param string $title    The link title attribute for the nav item.
     * @param object $nav_item The current nav item object.
     * @param string $value    The current nav in use (eg: 'directory', 'groups', 'personal', etc..).
     */
    return apply_filters( 'bp_nouveau_get_nav_link_title', $title, $nav_item, $bp_nouveau->displayed_nav );
}

Changelog

Changelog
Version Description
BuddyPress 3.0.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.