Skip to content

Commit

Permalink
fix: Remove duplicate hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyazdani committed Mar 23, 2024
1 parent 72a09ac commit 73a5845
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) );
}

/**
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 73a5845

Please sign in to comment.