bp_blog_backcompat_create_nav_item()

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

Description

Return

(string|null) HTML Output

Source

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

1495
1496
1497
1498
1499
1500
1501
1502
function bp_blog_backcompat_create_nav_item() {
    // Bail if the theme is not filtering the Blogs directory title.
    if ( ! has_filter( 'bp_blogs_directory_header' ) ) {
        return;
    }
 
    bp_blog_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.