bp_nouveau_get_filter_label()

Get data filter’s label.

Description

Parameters

(Required)

Source

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

2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
function bp_nouveau_get_filter_label() {
    $component = bp_nouveau_current_object();
    $label     = __( 'Order By:', 'buddyboss' );
 
    if ( 'activity' === $component['object'] || 'friends' === $component['object'] ) {
        $label = __( 'Show:', 'buddyboss' );
    }
 
    /**
     * Filters the label for BuddyPress Nouveau filters.
     *
     * @since BuddyPress 3.0.0
     *
     * @param string $label     Label for BuddyPress Nouveau filter.
     * @param array  $component The data filter's data-bp-filter attribute value.
     */
    return apply_filters( 'bp_nouveau_get_filter_label', $label, $component );
}

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.