bp_groups_type_admin_type_exists( boolean $exists = false, string $type_id = '' )

Checks whether a group type already exists.


Parameters Parameters

$exists

(boolean) (Optional) True if the group type already exists. False otherwise.

Default value: false

$type_id

(string) (Optional) The group type identifier.

Default value: ''


Top ↑

Return Return

(boolean) True if the group type already exists. False otherwise.


Source Source

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

function bp_groups_type_admin_type_exists( $exists = false, $type_id = '' ) {
	if ( ! $type_id ) {
		return $exists;
	}

	return ! is_null( bp_groups_get_group_type_object( $type_id ) );
}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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