woocommerce_mini_cart

Output the Mini-cart - used by cart widget.

Description

woocommerce_mini_cart( (array) $args = array() ); 

Parameters (1)

0. $args — Optional. (array) => array()
The args.

Usage

  1. if ( !function_exists( 'woocommerce_mini_cart' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4. // The args. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_mini_cart($args); 
  9.  

Defined (1)

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

/includes/wc-template-functions.php  
  1. function woocommerce_mini_cart( $args = array() ) { 
  2.  
  3. $defaults = array( 
  4. 'list_class' => '',  
  5. ); 
  6.  
  7. $args = wp_parse_args( $args, $defaults ); 
  8.  
  9. wc_get_template( 'cart/mini-cart.php', $args );