diff --git a/HealthCheck/class-health-check.php b/HealthCheck/class-health-check.php index 60ac9a9..e05c8a8 100644 --- a/HealthCheck/class-health-check.php +++ b/HealthCheck/class-health-check.php @@ -46,7 +46,7 @@ public function __construct() { * @return void */ public function init() { - add_action( 'plugins_loaded', array( $this, 'load_i18n' ) ); + add_action( 'init', array( $this, 'load_i18n' ) ); add_filter( 'plugin_action_links', array( $this, 'troubleshoot_plugin_action' ), 20, 4 ); add_filter( 'plugin_action_links_' . plugin_basename( HEALTH_CHECK_PLUGIN_FILE ), array( $this, 'page_plugin_action' ) ); diff --git a/health-check.php b/health-check.php index 724c9de..ef7b641 100644 --- a/health-check.php +++ b/health-check.php @@ -59,7 +59,7 @@ } add_action( - 'plugins_loaded', + 'init', function() { // Include class-files used by our plugin. require_once( dirname( __FILE__ ) . '/HealthCheck/class-health-check.php' );