From e29a3f76d33eb7793d036f988264f82e8a1e5fa0 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Wed, 4 Sep 2024 16:07:46 +0530 Subject: [PATCH] fix: method being called wrongly Fixes the issue in class where after_otter_activation module was being called directly and not from the class method. --- inc/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Admin.php b/inc/Admin.php index ee39709..0343e87 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -66,7 +66,7 @@ public function setup_admin_hooks() { add_action( 'enqueue_block_editor_assets', array( $this, 'add_fse_design_pack_notice' ) ); add_action( 'wp_ajax_neve_fse_dismiss_design_pack_notice', array( $this, 'remove_design_pack_notice' ) ); - add_action( 'activated_plugin', 'after_otter_activation' ); + add_action( 'activated_plugin', array( $this, 'after_otter_activation' ) ); add_action( 'wp_ajax_neve_fse_set_otter_ref', array( $this, 'set_otter_ref' ) ); }