Skip to content

Commit

Permalink
Fix: load plugin translations later on init (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf authored Oct 3, 2024
1 parent 5faa127 commit 7b84cc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sale-discount-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ private function __construct() {
$this->define( 'WPO_WC_SPAD_MIN_WC_VER', '4.0' );
$this->define( 'WPO_WC_SPAD_MIN_WP_VER', '5.0' );

add_action( 'plugins_loaded', [ $this, 'load_textdomain' ], 8 );
add_action( 'admin_notices', [ $this, 'admin_notices' ], 8 );
add_action( 'plugins_loaded', [ $this, 'load' ], 8 );
add_action( 'init', [ $this, 'load_textdomain' ], 9 );
add_action( 'init', [ $this, 'load' ] );
add_action( 'admin_notices', [ $this, 'admin_notices' ] );
}

/**
Expand Down

0 comments on commit 7b84cc0

Please sign in to comment.