woocommerce_mini_cart()
Output the Mini-cart - used by cart widget.
Uses: wc_get_template()
No Hooks.
Return
null
. Nothing (null).
Usage
woocommerce_mini_cart( $args );
- $args(array)
- Arguments.
Default: array()
Examples
#1 Display the mini shopping cart and pass the css class [auto-translate]
woocommerce_mini_cart( [ 'list_class' => 'my-css-class' ] );
woocommerce_mini_cart() woocommerce mini cart code WC 9.8.2
function woocommerce_mini_cart( $args = array() ) { $defaults = array( 'list_class' => '', ); $args = wp_parse_args( $args, $defaults ); wc_get_template( 'cart/mini-cart.php', $args ); }