woocommerce remove order_comments from emails
-
I want to remove Additional Notes from WooCommerce emails.
I have already removed them from the checkout page but they still appear in emails – processing order, new order, invoices, the lot!
this is my code in functions.php:
// remove Order Notes from checkout field in Woocommerce
add_filter( ‘woocommerce_checkout_fields’ , ‘alter_woocommerce_checkout_fields’ );
function alter_woocommerce_checkout_fields( $fields ) {
unset($fields[‘order’][‘order_comments’]);
return $fields;
}
function remove_wc_order_notes() {
return false;
}
add_filter( ‘woocommerce_enable_order_notes_field’, ‘remove_wc_order_notes’ );Please help!
The topic ‘woocommerce remove order_comments from emails’ is closed to new replies.