File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,15 @@ public static function getInstance(): Controller {
3535 public static function init ( string $ bootstrap_file ): Controller {
3636 $ plugin_instance = self ::getInstance ();
3737
38- WordPressAdmin::registerActivationHooks ( $ bootstrap_file );
38+ register_activation_hook (
39+ $ bootstrap_file ,
40+ [ self ::class, 'activate ' ]
41+ );
42+
43+ register_deactivation_hook (
44+ $ bootstrap_file ,
45+ [ self ::class, 'deactivate ' ]
46+ );
3947
4048 if ( ! $ plugin_instance ->loadAdmin () ) {
4149 return $ plugin_instance ;
Original file line number Diff line number Diff line change @@ -33,18 +33,6 @@ public static function buildUpdateChecker( string $bootstrap_file ): void {
3333 );
3434 }
3535
36- public static function registerActivationHooks ( string $ bootstrap_file ): void {
37- register_activation_hook (
38- $ bootstrap_file ,
39- [ Controller::class, 'activate ' ]
40- );
41-
42- register_deactivation_hook (
43- $ bootstrap_file ,
44- [ Controller::class, 'deactivate ' ]
45- );
46- }
47-
4836 /**
4937 * Register hooks for WordPress and plugin actions
5038 *
You can’t perform that action at this time.
0 commit comments