bp_ps_display_sort_options()

Output BuddyBoss Profile Search sort options.

Description

Source

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

function bp_ps_display_sort_options ()
{
	global $bp_ps_sort_options;

	$version = bp_get_version();
	echo "\n<!-- BP Profile Search $version -->\n";

	$sort_options = apply_filters ('bp_ps_sort_options', $bp_ps_sort_options);
	foreach ($sort_options as $code => $name)
	{
?>
		<option value='<?php echo esc_attr($code); ?>'><?php echo esc_html($name); ?></option>
<?php
	}

	echo "\n<!-- BP Profile Search end -->\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.