Optimized woocommerce support function