0

Just for testing, I created a plugin with this

add_filter( 'woocommerce_checkout_fields' , function( $fields ) {
unset($fields['order']['order_comments']);
return $fields; } );

Now, I would like to remove it with functions.php file in child theme. The problem is anonymous function, so cannot just call remove_filter. Don't ask me to create a function with name, because I am working on a project, which I need to remove that filter without changing the plugin code.

I see some threads about this, but they are old, and not working. Any idea for completing this task, please?

Thanks.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.