bp_nouveau_get_filter_id()

Get data filter’s ID attribute value.


Parameters Parameters

(string) (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 '';
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.