added new function for woocommerce support