Remove WooCommerce Order Notes Field

Written by
Published
Updated
Typical Read
0 minutes

Learn how to remove WooCommerce order notes field & title using the woocommerce_checkout_fields & woocommerce_enable_order_notes_field hooks.

tl;dr

/**
 * Removes the order notes field.
 * 
 * @since x.x.x
 * 
 * @param array $fields Array of checkout fields.
 * @return array The modifed array of checkout fields.
 */
function yourplugin_remove_order_notes( $fields ) {
  unset( $fields['order']['order_comments'] );
  return $fields;
}
add_filter( 'woocommerce_checkout_fields', 'yourplugin_remove_order_notes' );
// Removes order notes title - additional information & notes field
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );

Join the conversation.

Your email address will not be published. Required fields are marked *

All comments posted on 'Remove WooCommerce Order Notes Field' are held for moderation and only published when on topic and not rude. Get a gold star if you actually read & follow these rules.

You may write comments in Markdown. This is the best way to post any code, inline like `<div>this</div>` or multiline blocks within triple backtick fences (```) with double new lines before and after.

Want to tell me something privately, like pointing out a typo or stuff like that? Contact Me.