apply_filters( 'bp_nav_item_has_subnav', bool $has_subnav, string $nav_item )

Filters whether or not a given nav item has subnav items.

Description

Parameters

$has_subnav

(bool) Whether or not there is any subnav items.

$nav_item

(string) The slug of the top-level nav item whose subnav items you're checking.

Source

File: bp-core/bp-core-buddybar.php

Changelog

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