Skip to content

Instantly share code, notes, and snippets.

@fbmoises
Created November 23, 2017 12:58
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 fbmoises/c25118a04780e3586b92e89a577f6f46 to your computer and use it in GitHub Desktop.
Save fbmoises/c25118a04780e3586b92e89a577f6f46 to your computer and use it in GitHub Desktop.
Quitar notas de envío del Checkout
// Quitar notas de envío del checkout
add_filter( 'woocommerce_checkout_fields' , 'wcfb_remove_order_notes' );
function wcfb_remove_order_notes( $fields ) {
unset($fields['order']['order_comments']);
return $fields;
}
// Quitar el título del campo
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