bp_nouveau_get_filter_id()
Get data filter’s ID attribute value.
Description Description
Parameters Parameters
-
(Required)
Source Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_get_filter_id() {
$component = bp_nouveau_current_object();
$ids = array(
'members' => $component['members_order_by'],
'friends' => 'members-friends',
'notifications' => 'notifications-filter-by',
'activity' => 'activity-filter-by',
'groups' => 'groups-order-by',
'blogs' => 'blogs-order-by',
);
if ( isset( $ids[ $component['object'] ] ) ) {
/**
* Filters the filter ID for BuddyPress Nouveau filters.
*
* @since 3.0.0
*
* @param string $value ID based on current component object.
*/
return apply_filters( 'bp_nouveau_get_filter_id', $ids[ $component['object'] ] );
}
return '';
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |