Last active
August 29, 2015 14:23
-
-
Save Willem-Siebe/f23e348d1165d7934868 to your computer and use it in GitHub Desktop.
Remove Purchase Order field from Wholesale checkout page, see plugin https://stephensherrardplugins.com/plugins/woocommerce-wholesale-ordering/. Why is it there, plugin developer: At least here is the USA most companies that order wholesale from their vendors, have their own internal Purchase Order numbers that they assign to each order they mak…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove Purchase Order field from Wholesale checkout page, see https://gist.github.com/Willem-Siebe/f23e348d1165d7934868. | |
function wsis_remove_purchase_order_field($fields) { | |
if (isset($fields['order']['purchase_order'])) { | |
unset($fields['order']['purchase_order']); | |
} | |
return $fields; | |
} | |
add_filter( 'woocommerce_checkout_fields', 'wsis_remove_purchase_order_field', 15, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment