diff --git a/shared-plugins/two-factor/class-two-factor-core.php b/shared-plugins/two-factor/class-two-factor-core.php index 6a990c87fd..4d798993c4 100644 --- a/shared-plugins/two-factor/class-two-factor-core.php +++ b/shared-plugins/two-factor/class-two-factor-core.php @@ -93,7 +93,7 @@ class Two_Factor_Core { * @since 0.1-dev */ public static function add_hooks( $compat ) { - add_action( 'plugins_loaded', array( __CLASS__, 'load_textdomain' ) ); + add_action( 'init', array( __CLASS__, 'load_textdomain' ) ); add_action( 'init', array( __CLASS__, 'get_providers' ) ); add_action( 'wp_login', array( __CLASS__, 'wp_login' ), 10, 2 ); add_filter( 'wp_login_errors', array( __CLASS__, 'maybe_show_reset_password_notice' ) );