bp_group_type_exclude_groups_from_directory_and_searches( bool $qs = false, bool $object = false )
Excludes specific group types from search and listing.
Description
Parameters
- $qs
-
(bool) (Optional)
Default value: false
- $object
-
(bool) (Optional)
Default value: false
Return
(bool|string)
Source
File: bp-core/deprecated/buddyboss/1.1.8.php
function bp_group_type_exclude_groups_from_directory_and_searches( $qs=false, $object=false ) { $exclude_group_ids = array_unique( bp_get_groups_of_removed_group_types() ); if( $object != 'groups' ) return $qs; $args = wp_parse_args( $qs ); if( ! empty( $args['exclude'] ) ) $args['exclude'] = $args['exclude'] . ',' . implode( ',', $exclude_group_ids ); else $args['exclude'] = implode( ',', $exclude_group_ids ); $qs = build_query( $args ); return $qs; }
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.