From 33bc64abba8bd46fb0f0da0f7e107914f704cbbc Mon Sep 17 00:00:00 2001 From: Tigran Ghukasyan Date: Wed, 9 Oct 2024 16:02:26 +0400 Subject: [PATCH] changed hook where textdomain is loaded --- src/TransientsManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TransientsManager.php b/src/TransientsManager.php index 5283c6f..ee11f97 100644 --- a/src/TransientsManager.php +++ b/src/TransientsManager.php @@ -119,7 +119,7 @@ public function getInstallTime() * @since 2.0 */ public function init() { - add_action( 'plugins_loaded', array( $this, 'text_domain' ) ); + add_action( 'after_setup_theme', array( $this, 'text_domain' ) ); add_action( 'admin_init', array( $this, 'set_vars' ) ); add_action( 'admin_init', array( $this, 'process_actions' ) ); add_action( 'admin_menu', array( $this, 'tools_link' ) );