Skip to content

Instantly share code, notes, and snippets.

@marcusig
Created November 29, 2023 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusig/0711b2ad89697d1f467bf0bc911c96e1 to your computer and use it in GitHub Desktop.
Save marcusig/0711b2ad89697d1f467bf0bc911c96e1 to your computer and use it in GitHub Desktop.
Do not display configurator data in the cart and order
<?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