apply_filters( 'bp_groups_get_group_types', array $types, array $args, string $operator )

Filters the array of group type objects.

Description

This filter is run before the $output filter has been applied, so that filtering functions have access to the entire group type objects.

Parameters

$types

group type objects, keyed by name.

$args

Array of key=>value arguments for filtering.

$operator

'or' to match any of $args, 'and' to require all.

Source

File: bp-groups/bp-groups-functions.php

Changelog

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