bws_filter_widget_menu

The Bootstrap Widget Styling bws filter widget menu function.

Description

bws_filter_widget_menu( $menu_markup, $args ); 

Parameters (2)

0. $menu_markup
The menu markup.
1. $args
The args.

Usage

  1. if ( !function_exists( 'bws_filter_widget_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bootstrap-widget-styling/includes/bws-widget-filters.php'; 
  3.  
  4. // The menu markup. 
  5. $menu_markup = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bws_filter_widget_menu($menu_markup, $args); 
  12.  

Defined (1)

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

/includes/bws-widget-filters.php  
  1. function bws_filter_widget_menu( $menu_markup , $args ) { 
  2. if ( ( ! isset( $args->fallback_cb ) ) || ( "" == $args->fallback_cb ) ) { 
  3. $menu_markup = BWS_Menu::filter( $menu_markup ) ; 
  4. return $menu_markup ;