Skip to content

Instantly share code, notes, and snippets.

@chrdesigner
Created August 28, 2015 20:14
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 chrdesigner/ceb43ff8685990681e97 to your computer and use it in GitHub Desktop.
Save chrdesigner/ceb43ff8685990681e97 to your computer and use it in GitHub Desktop.
<?php
// Remove o Field de Informação adicional
add_filter( 'woocommerce_checkout_fields' , 'alter_woocommerce_checkout_fields' );
function alter_woocommerce_checkout_fields( $fields ) {
unset($fields['order']['order_comments']);
return $fields;
}
// Remove o título de Informação adicional
add_filter( 'woocommerce_enable_order_notes_field', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment