apply_filters( 'bp_get_member_type', string|array|bool $type , int $user_id , bool $single )
Filters a user’s member type(s).
Parameters Parameters
- $type
-
(string|array|bool) a single member type (if $single is true) or an array of member types (if $single is false) or false on failure.
- $user_id
-
(int) ID of the user.
- $single
-
(bool) Whether to return a single type string, or an array.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |