/var/www/html/wp-content/plugins/checkout-for-woocommerce/includes/Compatibility/Themes/Electro.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Objectiv\Plugins\Checkout\Compatibility\Themes;

use 
Objectiv\Plugins\Checkout\Compatibility\CompatibilityAbstract;

class 
Electro extends CompatibilityAbstract {
    public function 
is_available(): bool {
        return 
function_exists'electro_wrap_order_review' );
    }

    function 
pre_init() {
        
add_action'woocommerce_checkout_update_order_review', array( $this'cleanup_actions' ) );
    }

    public function 
run() {
        
$this->cleanup_actions();
    }

    function 
cleanup_actions() {
        
remove_action'woocommerce_checkout_shipping''electro_shipping_details_header');
        
remove_action'woocommerce_checkout_before_order_review''electro_wrap_order_review');
        
remove_action'woocommerce_checkout_after_order_review''electro_wrap_order_review_close');
    }
}