Skip to content

Commit 7cfb565

Browse files
authored
Use init hook instead of plugins_loaded (#436)
1 parent ed3ac73 commit 7cfb565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/MslsPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct( MslsOptions $options ) {
3434
public static function init(): void {
3535
$obj = new self( msls_options() );
3636

37-
add_action( 'plugins_loaded', array( $obj, 'init_i18n_support' ) );
37+
add_action( 'init', array( $obj, 'init_i18n_support' ) );
3838

3939
register_activation_hook( self::file(), array( __CLASS__, 'activate' ) );
4040

0 commit comments

Comments
 (0)