bp_ps_clear_directory()
Clear BuddyBoss Profile Search directory.
Description
Source
File: bp-core/profile-search/bps-directory.php
function bp_ps_clear_directory ()
{
global $bp;
$dirs = bp_ps_directories ();
$current = parse_url ($_SERVER['REQUEST_URI'], PHP_URL_PATH);
foreach ($dirs as $dir) {
if ($dir->link == $current) {
add_filter ('bp_directory_members_search_form', function ($text) {return $text;});
break;
}
}
}
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.