bp_get_group_type_directory_link( string $group_type = '' )

Return group type directory link.

Description

Parameters

$group_type

(string) (Optional) Unique group type identifier as used in bp_groups_register_group_type().

Default value: ''

Return

(string)

Source

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

	function bp_get_group_type_directory_link( $group_type = '' ) {
		if ( empty( $group_type ) ) {
			return '';
		}

		return sprintf( '<a href="%s">%s</a>', esc_url( bp_get_group_type_directory_permalink( $group_type ) ), bp_groups_get_group_type_object( $group_type )->labels['singular_name'] );
	}

Changelog

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