generate_woocommerce_menu_cart_icon

The generate_woocommerce_menu_cart_icon filter allows you to change the icon HTML that builds the WooCommerce cart icon in the primary navigation.

Usage

Please refer to the Using Filters article to learn how to use this filter.

Examples

add_filter( 'generate_woocommerce_menu_cart_icon', 'tu_change_wc_menu_cart_icon' );
function tu_change_wc_menu_cart_icon() {
    return '<i class="fa fa-shopping-cart" aria-hidden="true"></i>';
}