<?php
if ( ! class_exists( 'WFACP_Compatibility_Gift_Card_MakeWebBetter' ) ) {
	/**
	 * https://makewebbetter.com/
	 * Author   MakeWebBetter
	 * #[AllowDynamicProperties]
	 *
	 * class WFACP_Compatibility_Gift_Card_MakeWebBetter
	 */
	#[AllowDynamicProperties]
	class WFACP_Compatibility_Gift_Card_MakeWebBetter {
		public function __construct() {
			add_action( 'wfacp_checkout_page_found', [ $this, 'action' ] );
		}

		public function action() {
			WFACP_Common::remove_actions( 'woocommerce_add_cart_item_data', 'Woocommerce_Gift_Cards_Lite_Public', 'mwb_wgm_woocommerce_add_cart_item_data' );
		}
	}


	WFACP_Plugin_Compatibilities::register( new WFACP_Compatibility_Gift_Card_MakeWebBetter(), 'gift_make_web_better' );

}