Woocommerce - Replace process registration function