<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! class_exists( 'WFACP_Compatibility_With_Zerif_By_ThemeIsle' ) ) {
	#[AllowDynamicProperties]
	class WFACP_Compatibility_With_Zerif_By_ThemeIsle {
		public function __construct() {
			/* checkout page */
			add_action( 'wfacp_after_checkout_page_found', [ $this, 'actions' ] );
		}

		public function actions() {

			/* Zerif Theme Compatabilty */

			remove_action( 'woocommerce_before_checkout_form', 'zerif_coupon_after_order_table_js' );
			remove_action( 'woocommerce_checkout_order_review', 'zerif_coupon_after_order_table' );


		}

	}

	WFACP_Plugin_Compatibilities::register( new WFACP_Compatibility_With_Zerif_By_ThemeIsle(), 'wfacp-zerif-by-themeIsle' );
}