bp_ps_display_sort_options()

Output BuddyBoss Profile Search sort options.

Description

Source

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

159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
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.