Skip to content

Commit 3298c35

Browse files
committed
load our new health panel class
1 parent 0f5359a commit 3298c35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Plugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Exception;
1313

14+
use WebDevStudios\CCForWoo\Utility\HealthPanel;
1415
use WebDevStudios\CCForWoo\Utility\PluginCompatibilityCheck;
1516
use WebDevStudios\OopsWP\Structure\ServiceRegistrar;
1617
use WebDevStudios\CCForWoo\View\ViewRegistrar;
@@ -211,6 +212,7 @@ public function register_hooks() {
211212
add_action( 'wp_enqueue_scripts', [ $this, 'register_scripts' ] );
212213
add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ], 99 );
213214
add_action( 'init', [ $this, 'load_plugin_textdomain' ] );
215+
add_action( 'init', [ $this, 'load_health_panel' ] );
214216

215217
register_activation_hook( $this->plugin_file, [ $this, 'do_activation_process' ] );
216218
register_deactivation_hook( $this->plugin_file, [ $this, 'do_deactivation_process' ] );
@@ -377,5 +379,9 @@ public function admin_enqueue_scripts() {
377379
public function load_plugin_textdomain() {
378380
load_plugin_textdomain( 'constant-contact-woocommerce' );
379381
}
382+
383+
public function load_health_panel() {
384+
new HealthPanel();
385+
}
380386
}
381387

0 commit comments

Comments
 (0)