new_nav_menu_items

The ColorWay Theme new nav menu items function.

Description

new_nav_menu_items( $items ); 

Parameters (1)

0. $items
The items.

Usage

  1. if ( !function_exists( 'new_nav_menu_items' ) ) { 
  2. require_once '/functions/inkthemes-functions.php'; 
  3.  
  4. // The items. 
  5. $items = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = new_nav_menu_items($items); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions/inkthemes-functions.php  
  1. function new_nav_menu_items($items) { 
  2. function get_current_menu() { 
  3. if ( is_home() ) { print "<li class=\"current_page_item\">"; } 
  4. else{ 
  5. print "<li>"; 
  6. $homelink = get_current_menu().'<a href="' . home_url( '/' ) . '">' . __('Home') . '</a></li>'; 
  7. $items = $homelink . $items; 
  8. return $items;