bp_nav_item_has_subnav

  • apply_filters( 'bp_nav_item_has_subnav', $has_subnav, $nav_item )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-buddybar.php :: Trac Source Line: 303
       */
      function bp_nav_item_has_subnav( $nav_item = '' ) {
      	global $bp;
      
      	if ( !$nav_item )
      		$nav_item = bp_current_component();
      
      	$has_subnav = isset( $bp->bp_options_nav[$nav_item] ) && count( $bp->bp_options_nav[$nav_item] ) > 0;
      
      	return apply_filters( 'bp_nav_item_has_subnav', $has_subnav, $nav_item );
      }
      
      /**
       * Removes a navigation item from the sub navigation array used in BuddyPress themes.
       *
       * @package BuddyPress Core
       * @param $parent_id The id of the parent navigation item.
       * @param $slug The slug of the sub navigation item.
       */
      function bp_core_remove_nav_item( $parent_id ) {
      

Comments are closed.