Snippets: Alter WooCommerce Menu Shop Icon HTML

// Alter WooCommerce Menu Shop Icon HTML
add_filter( 'wpex_menu_cart_icon_html', function( $html ) {
	$icon_class = wpex_get_mod( 'woo_menu_icon_class' );
	$icon_class = $icon_class ? $icon_class : 'shopping-cart';
	$html = '<span class="wcmenucart-icon fa fa-'. esc_attr( $icon_class ) .'"></span><span class="wcmenucart-text">'. esc_html__( 'Shop', 'total' ) .'</span>';
	return $html;
} );
All PHP snippets should be added via a child theme's functions.php file.