diff --git a/includes/PerformanceFeatureHooks.php b/includes/PerformanceFeatureHooks.php index ce7a445..a660ccc 100644 --- a/includes/PerformanceFeatureHooks.php +++ b/includes/PerformanceFeatureHooks.php @@ -1,7 +1,6 @@ plugin()->file, array( $this, 'onActivation' ) ); register_deactivation_hook( $container->plugin()->file, array( $this, 'onDeactivation' ) ); + + } + + /** + * Add hooks. + */ + public function hooks() { + add_action( 'newfold/features/action/onEnable:performance', array( $this, 'onActivation' ) ); + add_action( 'newfold/features/action/onDisable:performance', array( $this, 'onDeactivation' ) ); } /**