weblizar_nav_menu_css_class

The Enigma weblizar nav menu css class function.

Description

weblizar_nav_menu_css_class( $classes ); 

Parameters (1)

0. $classes
The classes.

Usage

  1. if ( !function_exists( 'weblizar_nav_menu_css_class' ) ) { 
  2. require_once '/core/menu/weblizar_nav_walker.php'; 
  3.  
  4. // The classes. 
  5. $classes = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = weblizar_nav_menu_css_class($classes); 
  9.  

Defined (1)

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

/core/menu/weblizar_nav_walker.php  
  1. function weblizar_nav_menu_css_class( $classes ) { 
  2. if ( in_array('current-menu-item', $classes ) OR in_array( 'current-menu-ancestor', $classes ) ) 
  3. $classes[] = 'active'; 
  4.  
  5. return $classes;