Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/BigCommerce/Templates/Cart_Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ class Cart_Items extends Controller {
protected function parse_options( array $options ) {
$defaults = [
self::CART => [],
self::IMAGE_SIZE => Image_Sizes::BC_SMALL,
/**
* Filter the image size used for cart item image
*
* @param string $IMAGE_SIZE The image size to use
*/
self::IMAGE_SIZE => apply_filters( 'bigcommerce/template/cart_items_image/size', Image_Sizes::BC_SMALL ),
];

return wp_parse_args( $options, $defaults );
Expand Down