evolve_menu_ulclass

Evolve_menu - adds css class to the

    tag in wp_page_menu.

Description

apply_filters( 'evolve_menu_ulclass', (string) $string_nav_menu ); 

Parameters (1)

0. $string_nav_menu (string) => (string) 'nav-menu'
The string nav menu.

Usage

To run the hook, copy the example below.
  1. $string_nav_menu = apply_filters( 'evolve_menu_ulclass', $string_nav_menu ); 
  2.  
  3. if ( !empty( $string_nav_menu ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the evolve_menu_ulclass callback 
  2. function filter_evolve_menu_ulclass( $string_nav_menu ) { 
  3. // make filter magic happen here... 
  4. return $string_nav_menu
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'evolve_menu_ulclass', 'filter_evolve_menu_ulclass', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'evolve_menu_ulclass', 'filter_evolve_menu_ulclass', 10, 1 ); 

Defined (1)

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

/library/functions/functions.php  
  1. $classes = apply_filters('evolve_menu_ulclass', (string) 'nav-menu'); // Available filter: evolve_menu_ulclass