1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace Objectiv\Plugins\Checkout\Compatibility\Themes;
use Objectiv\Plugins\Checkout\Compatibility\CompatibilityAbstract;
class TheBox extends CompatibilityAbstract { public function is_available(): bool { return function_exists( 'themecube_product_thumbnail_in_checkout' ); }
public function run_on_update_checkout() { $this->run(); }
public function run() { remove_filter( 'woocommerce_cart_item_name', 'themecube_product_thumbnail_in_checkout', 20 ); remove_filter( 'woocommerce_checkout_cart_item_quantity', 'themecube_filter_checkout_cart_item_quantity', 20 ); remove_filter( 'woocommerce_cart_item_name', 'themecube_cart_item_category', 99 ); } }
|