Skip to content

Instantly share code, notes, and snippets.

@dryan1144
Created October 8, 2014 15:51
Show Gist options
  • Save dryan1144/b6d4973a385a3b08e669 to your computer and use it in GitHub Desktop.
Save dryan1144/b6d4973a385a3b08e669 to your computer and use it in GitHub Desktop.
Remove product thumbnail from iThemes Exchange cart, checkout and confirmation
<?php
/*
------------------------------------------------------------------------------------------
Remove thumbnails from iThemes checkout and order confirmation
------------------------------------------------------------------------------------------
*/
function custom_exchange_get_content_cart_items_elements( $parts ) {
foreach ( $parts as $key => $part ) {
if ( 'item-featured-image' == $part ) {
unset( $parts[$key] );
}
}
return $parts;
}
add_action( 'it_exchange_get_content_cart_items_elements', 'custom_exchange_get_content_cart_items_elements' );
add_action( 'it_exchange_get_content_checkout_items_elements', 'custom_exchange_get_content_cart_items_elements' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment