bp_get_groups_group_type_base()

Get the group type base slug.

Description

The base slug is the string used as the base prefix when generating group type directory URLs. For example, in example.com/groups/type/foo/, ‘foo’ is the group type and ‘type’ is the base slug.

Return

(string)

Source

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

	function bp_get_groups_group_type_base() {
		/**
		 * Filters the group type URL base.
		 *
		 * @since BuddyPress 2.7.0
		 *
		 * @param string $base
		 * @todo why would you change this and what is this going to break?
		 */
		return apply_filters( 'bp_groups_group_type_base', _x( 'type', 'Group type URL base slug', 'buddyboss' ) );
	}

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.