bp_get_member_type_object( string $member_type )

Retrieve a member type object by name.

Parameters Parameters


(string) (Required) The name of the member type.

Top ↑

Return Return

(object) A member type object.

Source Source

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

function bp_get_member_type_object( $member_type ) {
	$types = bp_get_member_types( array(), 'objects' );

	if ( empty( $types[ $member_type ] ) ) {
		return null;

	return $types[ $member_type ];

Top ↑

Changelog Changelog

Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.