We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 648c05e commit 773cd21Copy full SHA for 773cd21
init.php
@@ -40,7 +40,7 @@ function geoip_detect_check_ipv6_support() {
40
function geoip_detect_load_textdomain() {
41
load_plugin_textdomain( 'geoip-detect', false, GEOIP_PLUGIN_DIR . '/languages' );
42
}
43
-add_action( 'plugins_loaded', 'geoip_detect_load_textdomain' );
+add_action( 'init', 'geoip_detect_load_textdomain' );
44
45
46
function geoip_detect_enqueue_admin_notices() {
lib/logger.php
@@ -69,4 +69,6 @@ public static function reset_last_error_msg($category = '') {
69
70
71
72
-Logger::init();
+add_action('init', function () {
73
+ Logger::init();
74
+});
0 commit comments