theme_location) { $count = esc_attr(WC()->cart->get_cart_contents_count()); //if there are items in the cart, put a number in front of the icon if ($count != 0) { $items .= ''; } else { //if not just put in an icon $items .= ''; } //end count check } //end checking active theme menu location } //end checking if woocommerce is active return $items; } /****************************************************************************************/ /******** Hide long description WYSIWYG field on woocommerce single /****************************************************************************************/ function c9togo_hide_wysiwyg($post) { global $post; if (get_post_type($post) == 'product') { ?>