BP_Walker_Nav_Menu

Create HTML list of BP nav items.


Description Description


Source Source

File: bp-core/classes/class-bp-walker-nav-menu.php

class BP_Walker_Nav_Menu extends BP_Walker_Nav_Menu_Compat {
	/**
	 * Compat method to extend Walker_Nav_Menu::walk() in PHP < 5.6.
	 *
	 * @since 5.1.0
	 *
	 * @param array $elements  See {@link Walker::walk()}.
	 * @param int   $max_depth See {@link Walker::walk()}.
	 */
	public function walk( $elements, $max_depth ) {
		$args = array_slice( func_get_args(), 2 );

		return $this->do_walk( $elements, $max_depth, $args );
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

Methods Methods

  • do_walk — Display array of elements hierarchically.
  • start_el — Display the current that we are on.
  • walk — Overrides Walker::walk() method.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.