BP_REST_Groups_Details_Endpoint::bp_rest_legacy_get_group_component_filters()

Legacy template group directory filter support added.

Description

Return

(array)

Source

File: bp-groups/classes/class-bp-rest-groups-details-endpoint.php

	public function bp_rest_legacy_get_group_component_filters() {
		$filters_data = array();

		$filters_data['active']       = __( 'Last Active', 'buddyboss' );
		$filters_data['popular']      = __( 'Most Members', 'buddyboss' );
		$filters_data['newest']       = __( 'Newly Created', 'buddyboss' );
		$filters_data['alphabetical'] = __( 'Alphabetical', 'buddyboss' );

		return apply_filters( 'bp_rest_legacy_get_group_component_filters', $filters_data );
	}

Changelog

Changelog
Version Description
0.1.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.