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

Filters the array of profile type objects.

Description

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

Parameters

$types

(array) profile type objects, keyed by name.

$args

(array) Array of key=>value arguments for filtering.

$operator

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

Source

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

Changelog

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