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 Description
Return Return
(string|null) HTML Output
Source Source
File: bp-groups/bp-groups-template.php
function bp_group_backcompat_create_nav_item() {
// Bail if the Groups nav item is already used by bp-legacy.
if ( has_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ) ) {
return;
}
// 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 |
|---|---|
| 2.2.0 | Introduced. |