Order functions woocommerce to wc refactor