Created
November 29, 2023 06:37
-
-
Save marcusig/0711b2ad89697d1f467bf0bc911c96e1 to your computer and use it in GitHub Desktop.
Do not display configurator data in the cart and order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'mkl_pc_is_loaded', function() { | |
remove_filter( 'woocommerce_get_item_data', array( mkl_pc( 'frontend' )->cart, 'wc_cart_get_item_data' ), 10 ); | |
}); | |
add_filter( 'mkl_pc_cart_item_choice', function( $cc ) { | |
return ''; | |
} ); | |
add_filter( 'mkl_pc/order_created/saved_data/label', function( $label ) { | |
return '_hidden_configuration_description'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment