Overview
  • Namespace
  • Class

Namespaces

  • nk2580
    • wordsmith
      • Actions
      • Endpoints
      • Environment
      • Filters
      • Inputs
        • Fields
      • Menus
      • MetaBoxes
      • PostTypes
      • Routes
      • Scripts
      • SettingsPages
      • Taxonomies
        • Hierarchical
        • NonHierarchical
      • UserCapabilities
      • UserRoles
      • Utillities
        • NavWalkers

Classes

  • Bootstrap

Class Bootstrap

Description of Cypher

Walker_Nav_Menu
Extended by nk2580\wordsmith\Utillities\NavWalkers\Bootstrap
Namespace: nk2580\wordsmith\Utillities\NavWalkers
Author: accounts
Located at Utillities/NavWalkers/Bootstrap.php

Methods summary

public
# start_lvl( string & $output, integer $depth = 0, $args = array() )

Parameters

$output
Passed by reference. Used to append additional content.
$depth
Depth of page. Used for padding.
$args

Since

3.0.0

See

Walker::start_lvl()
public
# start_el( string & $output, object $item, integer $depth = 0, integer $args = array(), object $id = 0 )

Parameters

$output
Passed by reference. Used to append additional content.
$item
Menu item data object.
$depth
Depth of menu item. Used for padding.
$args
$current_page Menu item ID.
$id
$args

Since

3.0.0

See

Walker::start_el()
public null
# display_element( object $element, array & $children_elements, integer $max_depth, integer $depth, array $args, string & $output )

Traverse elements to create list from elements.

Traverse elements to create list from elements.

Display one element if the element doesn't have any children otherwise, display the element and its children. Will only traverse up to the max depth and no ignore elements under that depth.

This method shouldn't be called directly, use the walk() method instead.

Parameters

$element
Data object
$children_elements
List of elements to continue traversing.
$max_depth
Max depth to traverse.
$depth
Depth of current element.
$args
$output
Passed by reference. Used to append additional content.

Returns

null
Null on failure with no changes to parameters.

Since

2.5.0

See

Walker::start_el()
public static
# fallback( array $args )

Menu Fallback

If this function is assigned to the wp_nav_menu's fallback_cb variable and a manu has not been assigned to the theme location in the WordPress menu manager the function with display nothing to a non-logged in user, and will add a link to the WordPress menu manager if logged in as an admin.

Menu Fallback

If this function is assigned to the wp_nav_menu's fallback_cb variable and a manu has not been assigned to the theme location in the WordPress menu manager the function with display nothing to a non-logged in user, and will add a link to the WordPress menu manager if logged in as an admin.

Parameters

$args
passed from the wp_nav_menu function.
API documentation generated by ApiGen