From 73a58457778606ecf90df63e6691479b39840328 Mon Sep 17 00:00:00 2001 From: Mahdi Yazdani Date: Sat, 23 Mar 2024 14:40:11 +0300 Subject: [PATCH] fix: Remove duplicate hooks --- src/Plugin.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index ceebec4..f79992a 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -145,10 +145,6 @@ private function load() { // Initialize the class. ( new $class() )->setup(); } - - add_action( 'before_woocommerce_init', array( 'Woo_Store_Vacation\\I18n', 'textdomain' ) ); - add_action( 'enqueue_block_editor_assets', array( 'Woo_Store_Vacation\\Assets', 'enqueue_editor' ) ); - add_action( 'admin_enqueue_scripts', array( 'Woo_Store_Vacation\\Assets', 'enqueue_admin' ) ); } /** @@ -184,9 +180,6 @@ private function get_classes() { ), 'Enhancements\\Meta' => array( 'condition' => $is_admin, - 'params' => array( - $this['file']->plugin_basename(), - ), ), 'Enhancements\\Notices' => array( 'condition' => $is_admin,