bp_group_backcompat_create_nav_item()

Checks if a specific theme is still filtering the Groups directory title if so, transform the title button into a Groups directory nav item.

Description

Return

(string|null) HTML Output

Source

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

function bp_group_backcompat_create_nav_item() {
	// Bail if the theme is not filtering the Groups directory title.
	if ( ! has_filter( 'bp_groups_directory_header' ) ) {
		return;
	}

	bp_group_create_nav_item();
}

Changelog

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