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 f493de1 commit 39ffaf4Copy full SHA for 39ffaf4
src/Plugin.php
@@ -30,11 +30,11 @@ public function register() {
30
register_activation_hook( PERFORM_PLUGIN_FILE, [ $this, 'activate' ] );
31
register_deactivation_hook( PERFORM_PLUGIN_FILE, [ $this, 'deactivate' ] );
32
33
- // Register services used throughout the plugin.
34
- add_action( 'plugins_loaded', [ $this, 'register_services' ] );
35
-
36
// Load text domain.
37
- add_action( 'init', [ $this, 'load_plugin_textdomain' ] );
+ add_action( 'plugins_loaded', [ $this, 'load_plugin_textdomain' ], 9 );
+
+ // Register services used throughout the plugin.
+ add_action( 'plugins_loaded', [ $this, 'register_services' ], 10 );
38
}
39
40
/**
0 commit comments