Here’s a quick PHP snippet to remove the “Order Notes” or “Additional Information” section on the checkout page. Typically located below the shipping (or billing) form, this can be easily removed with just one line of custom PHP!
<?php
/**
* Snippet Name: Remove the Order Notes field section from the WooCommerce checkout.
*/
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );
add_filter( 'woocommerce_checkout_fields' , 'remove_order_notes' );
function remove_order_notes( $fields ) {
unset($fields['order']['order_comments']);
return $fields;
}
Now you need to put this code in your theme function file or in a custom plugin.
Leave a Reply