WordPress filter hook
woocommerce_enable_order_notes_field
Defined by WooCommerce and fired by 52 plugins in total, running on 8.4M+ sites between them.
“Allows 3rd parties to alter whether the customer note should be displayed on the admin.”
How to use woocommerce_enable_order_notes_field
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_enable_order_notes_field', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
52 plugins that fire woocommerce_enable_order_notes_field
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )includes/admin/meta-boxes/class-wc-meta-box-order-data.php:779 -
Essential Addons for Elementor1+ million installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )includes/Template/Woocommerce/Checkout/Woo_Checkout_Helper.php:720 -
CartFlows200,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )woocommerce/template/checkout/form-shipping.php:57 -
ShopEngine90,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )widgets/checkout-form-additional/screens/default.php:20 -
ShopLentor80,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )includes/modules/shopify-like-checkout/includes/templates/form-shipping.php:42 -
Fluid Checkout for WooCommerce20,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === FluidCheckout_Settings::instance()->get_option( 'woocommerce_enable_order_comments' ) )inc/checkout-steps.php:5699 -
WCFM10,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) )views/orders/wcfm-view-orders-details.php:401 -
Shiptastic for WooCommerce10,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )src/PickupDelivery.php:1036 -
ShopBuilder10,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/elementor/checkout/order-notes.php:18 -
WPFunnels5,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )public/modules/checkout/class-wpfnl-checkout.php:1427 -
Youzify5,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )includes/public/templates/members/single/woocommerce/checkout/form-shipping.php:59 -
WowStore4,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )blocks/woo/checkout/additional_information/Template.php:13 -
Responsive Addons for Elementor3,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )traits/responsive-addons-for-elementor-woo-checkout-helper.php:915 -
One page checkout and layouts for woocommerce3,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )WooCommerce/checkout/cclw_includes/cclw_additional_fields.php:5 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )blocks/checkout-form-additional/screen.php:36 -
Flexible Subscriptions1,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/admin/subscription/metabox/details.php:266 -
워드프레스 결제 심플페이1,000+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/pafw/form-billing.php:49 -
Svea Checkout for WooCommerce800+ installs
apply_filters( 'woocommerce_enable_order_notes_field', get_option( 'woocommerce_enable_order_comments', 'yes' ) === 'yes' )inc/Template_Handler.php:410 -
ShopPress600+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )public/templates/checkout/checkout-additional-fields.php:18 -
StoreBuild400+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )public/woocommerce/checkout/note.php:15 -
Nota Fiscal Eletrônica Webmania300+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) )class-backend.php:2902 -
Postcodes4U Address Finder300+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )woocommerce/checkout/form-shipping.php:174 -
FoodBook Lite300+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )template/woocommerce/checkout/form-shipping.php:50 -
KiriminAja Official200+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/woocommerce/checkout/form-shipping.php:55 -
ShopMaker90+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/widgets/checkout/form-shipping.php:63 -
Product Page Customizer for WooCommerce60+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )frontend/Enable-Quick-Checkout/templates/checkout/quick-checkout-form-shipping.php:60 -
Checkout Custom Fields Builder for WooCommerce30+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/frontend/checkout/form-additional-fields.php:28 -
One Page Checkout for WooCommerce30+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )public/templates/checkout/parts/additional_fields.php:5 -
StoreSuite20+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/orders/order-form.php:483 -
Subscriptions & Recurring Payments for WooCommerce10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) )inc/admin/meta-boxes/class-awc-meta-box-subscription-data.php:259 -
WPC10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )app/inc/Addons/wpc-onepage-checkout/templates/checkout/cart-review.php:52 -
Max Elements for Elementor10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )elementor/helpers/woo_checkout.php:711 -
TrafficFlow OnePageCheckout for WooCommerce10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/page-checkout.php:313 -
TSF Multistep Checkout for WooCommerce10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', get_option('woocommerce_enable_order_comments', 'yes') === 'yes' )woocommerce/checkout/form-checkout.php:83 -
Rahkar Toolkit10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )src/Modules/CheckoutFields/Fields.php:210 -
Quote Requests for WooCommerce10+ installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )src/functions/woocommerce.php:32 -
Invoice management for WoocommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) )admin/meta-boxes/class-wc-meta-box-order-data.php:469 -
S2 Subscription for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' == get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/admin/metabox/metabox-subscription-info-content.php:201 -
SuperPlusFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )includes/modules/checkout-steps/class-sp-wsv-module-checkout-steps.php:2294 -
Dustid Integration KitFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )public/template/woocommerce/checkout/form-shipping-old.php:87 -
VIMAFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/form-shipping.php:124 -
PlattivoFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )src/Integration/Checkout/ClassicFields.php:227 -
Easy2Cuba for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/form-shipping.php:33 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/woocommerce/checkout/form-shipping.php:27 -
STM Smart Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )includes/modules/class-stmc-module-layout.php:152 -
YayCheckoutFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )assets/dist/blocks/additional-fields/render.php:30 -
SKYRO Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )src/FrontEnd/TemplateFiles/TemplateParts/form-shipping.php:64 -
Aiolos Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/order-notes.php:23 -
Xcodesol Shop BuilderFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )blocks/page/cc-checkout-parts.php:101 -
Product Page Shipping for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/form-shipping.php:53 -
ithan devvn checkout for woocommerceFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option( 'woocommerce_enable_order_comments', 'yes' ) )templates/checkout/form-shipping.php:40 -
BazarioFewer than 10 installs
apply_filters( 'woocommerce_enable_order_notes_field', 'yes' === get_option('woocommerce_enable_order_comments', 'yes') )elements/widgets/checkout-form-additional/checkout-form-additional.php:409
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.