bp_nouveau_get_filter_label()
Get data filter’s label.
Parameters Parameters
-
(string) (Required)
Source Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_get_filter_label() { $component = bp_nouveau_current_object(); $label = __( 'Order By:', 'buddypress' ); if ( 'activity' === $component['object'] || 'friends' === $component['object'] ) { $label = __( 'Show:', 'buddypress' ); } /** * Filters the label for BuddyPress Nouveau filters. * * @since 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 ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |