Created
October 8, 2014 15:51
-
-
Save dryan1144/b6d4973a385a3b08e669 to your computer and use it in GitHub Desktop.
Remove product thumbnail from iThemes Exchange cart, checkout and confirmation
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 | |
/* | |
------------------------------------------------------------------------------------------ | |
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