apply_filters( 'Bp_Search_Groups_sql' )

Properly handle hidden groups.

Description

For guest users – exclude all hidden groups. For members – include only those hidden groups where current user is a member. For admins – include all hidden groups ( do nothing extra ).

Source

File: bp-search/classes/class-bp-search-groups.php

Changelog

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