Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Can’t remove checkout fields

$
0
0

Replies: 0

Attempting to use:

add_filter( 'woocommerce_enable_order_notes_field', '__return_false' );

It won’t remove the field.

I’ve also tried the one directly from the woocommerce checkout fields customization page:

// Hook in
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );

// Our hooked in function - $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
     unset($fields['order']['order_comments']);

     return $fields;
}

And that doesn’t work either. How do I add/change/remove fields with cartflows installed?


Viewing all articles
Browse latest Browse all 59525

Trending Articles