woocommerce_nav_menu_items

The WooCommerce woocommerce nav menu items function.

Description

woocommerce_nav_menu_items( $items, $args ); 

Parameters (2)

0. $items
The items.
1. $args
The args.

Usage

  1. if ( !function_exists( 'woocommerce_nav_menu_items' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The items. 
  5. $items = null; 
  6.  
  7. // The args. 
  8. $args = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = woocommerce_nav_menu_items($items, $args); 
  12.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_nav_menu_items( $items, $args ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_nav_menu_items' ); 
  3. return wc_nav_menu_items( $items );