BP_Core_BP_Nav_BackCompat::__construct( array $backcompat_nav = array() )

Constructor.

Description

Parameters

$backcompat_nav

(Optional) Array of nav items.

Default value: array()

Source

File: bp-core/classes/class-bp-core-bp-nav-backcompat.php

45
46
47
48
49
50
51
52
53
public function __construct( $backcompat_nav = array() ) {
    foreach ( $backcompat_nav as $key => $value ) {
        if ( is_array( $value ) ) {
            $this->backcompat_nav[ $key ] = new self( $value );
        } else {
            $this->backcompat_nav[ $key ] = $value;
        }
    }
}

Changelog

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