{"id":3173,"date":"2022-07-16T08:58:49","date_gmt":"2022-07-16T08:58:49","guid":{"rendered":"https:\/\/wpauthors.com\/blog\/?p=3173"},"modified":"2022-07-18T16:41:04","modified_gmt":"2022-07-18T16:41:04","slug":"woocommerce-remove-order-notes-without-writing-code","status":"publish","type":"post","link":"https:\/\/wpauthors.com\/blog\/woocommerce-remove-order-notes-without-writing-code\/","title":{"rendered":"WooCommerce: Remove Order Notes Without Writing Code"},"content":{"rendered":"\n<p>This article will explain how to remove WooCommerce order notes without writing code on your WooCommerce checkout page. No worries if you are looking for a simple code to remove order notes from WooCommerce. You can find the code snippet in the next section. <\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"remove-order-notes-without-writing-code\">Remove Order Notes Without Writing Code<\/h2>\n\n\n<ol class=\"wp-block-list\"><li>Download our small plugin from here: <a href=\"https:\/\/github.com\/wpauthors\/wpa-woocommerce-remove-order-notes\/archive\/refs\/tags\/1.0.zip\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Download<\/a> also; you can find the source code on GitHub <a href=\"https:\/\/github.com\/wpauthors\/wpa-woocommerce-remove-order-notes\" data-type=\"URL\" data-id=\"https:\/\/github.com\/wpauthors\/wpa-woocommerce-remove-order-notes\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WooCommerce remove order notes plugin<\/a>.<\/li><li>Navigate to your WordPress dashboard and <strong>Plugins &gt; Add new<\/strong>. <\/li><li>Click on the <strong>Upload plugin<\/strong> button and find the downloaded plugin file (zip file) from your computer. <\/li><li><strong>Activate<\/strong> the plugin.<\/li><li>Done. You do not have to do anything further. The plugin will handle the rest. <\/li><\/ol>\n\n\n\n<p>The plugin size is just <strong>1KB<\/strong> \ud83d\ude80 <\/p>\n\n\n\n<div class=\"wp-block-columns has-theme-palette-9-color has-midnight-gradient-background has-text-color has-background is-layout-flex wp-container-core-columns-is-layout-e86123f3 wp-block-columns-is-layout-flex\" style=\"padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<h6 class=\"has-text-align-left has-theme-palette-9-color has-text-color wp-block-heading\">Need WordPress expert support?<\/h6>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-buttons is-content-justification-right is-layout-flex wp-container-core-buttons-is-layout-765c4724 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill\" style=\"font-size:18px\"><a class=\"wp-block-button__link\" href=\"https:\/\/wpauthors.com\/hire-a-wordpress-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Hire a WordPress Developer<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"remove-woocommerce-order-notes-code-snippet\">Remove WooCommerce order notes code snippet<\/h2>\n\n\n<p>Just copy and paste this code snippet into the <strong>functions.php<\/strong> file of your <strong>child theme<\/strong>. If you do not have a child theme, find our make sure to <a href=\"https:\/\/wpauthors.com\/blog\/how-to-create-wordpress-child-theme\/\" target=\"_blank\" data-type=\"post\" data-id=\"3084\" rel=\"noreferrer noopener\">create a child theme<\/a> first. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">\/* Removes Order Notes Title - Additional Information &amp; Notes Field *\/\nadd_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );\n\n\/*\n* Unset order comments from the array\n* @param [array] $fields\n* @return [array]\n*\/\nfunction wpa_remove_order_notes( $fields ) {\n  unset($fields['order']['order_comments']);\n  return $fields;\n}\nadd_filter( 'woocommerce_checkout_fields' , 'wpa_remove_order_notes' );<\/code><\/pre>\n\n\n\n<p>The first filter, <em>woocommerce_enable_order_notes_field<\/em>, return false to disable the order note title and the related text. <em>woocommerce_checkout_fields<\/em> filter removes the input filed and the label.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will explain how to remove WooCommerce order notes without writing code on your WooCommerce checkout page. No worries if you are looking for a simple code to remove order notes from WooCommerce. You&#8230;<\/p>\n","protected":false},"author":1,"featured_media":3192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[10,9],"tags":[],"class_list":["post-3173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce","category-how-to"],"_links":{"self":[{"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/posts\/3173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/comments?post=3173"}],"version-history":[{"count":6,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/posts\/3173\/revisions"}],"predecessor-version":[{"id":3184,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/posts\/3173\/revisions\/3184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/media\/3192"}],"wp:attachment":[{"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/media?parent=3173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/categories?post=3173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpauthors.com\/blog\/wp-json\/wp\/v2\/tags?post=3173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}