bp_ps_clear_directory()

Clear BuddyBoss Profile Search directory.

Description

Source

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

62
63
64
65
66
67
68
69
70
71
72
73
74
75
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

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.