_bp_ps_filter_select( $f,  $name,  $id,  $value )

Output BuddyBoss Profile Search filtered select field.

Description

Source

File: bp-core/profile-search/bps-admin.php

function _bp_ps_filter_select ($f, $name, $id, $value)
{
	$filters = bp_ps_Fields::get_filters ($f);

	echo "<select class='bp_ps_col5' name='$name' id='$id'>\n";
	foreach ($filters as $key => $label)
	{
		$selected = $value == $key? " selected='selected'": '';
		echo "<option value='$key'$selected>$label</option>\n";
	}
	echo "</select>\n";
}

Changelog

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