evolve_menu_ulclass

Evolve_menu - adds css class to the

    tag in wp_page_menu.

Description

evolve_menu_ulclass( $ulclass ); 

Parameters (1)

0. $ulclass
The ulclass.

Usage

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

Defined (1)

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

/library/functions/functions.php  
  1. function evolve_menu_ulclass($ulclass) { 
  2. $classes = apply_filters('evolve_menu_ulclass', (string) 'nav-menu'); // Available filter: evolve_menu_ulclass 
  3. return preg_replace('/<ul>/', '<ul class="' . $classes . '">', $ulclass, 1);