Remove WooCommerce Order Notes Field

Written by
Published
Updated
Typical Read
0 minutes
Find your next web developer job
Drupal Web Developer at On Fire Media (San Antonio, TX)

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 );

Did you find Remove WooCommerce Order Notes Field useful? Get articles in your inbox.

…and don’t worry, I hate spam as much as you. Expect to hear from me at most once a week.

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on facebook

Stay updated.

Get a weekly email with the latest trends in web development & SEO.

Write a guest post.

Have an interesting article or idea? Become a guest blogger & pitch me your concept today.

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.