Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Willem-Siebe/f23e348d1165d7934868 to your computer and use it in GitHub Desktop.
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…
// 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