bp_nouveau_get_filter_label()
Get data filter’s label.
Description
Parameters
-
(Required)
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
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
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.