diff --git a/dokan-migrator.php b/dokan-migrator.php index a04262d..19d6f11 100644 --- a/dokan-migrator.php +++ b/dokan-migrator.php @@ -187,30 +187,30 @@ public function __get( $prop ) { } /** - * Initiates Appsero services. - * - * @since 1.0.0 - * - * @return void - */ - public function init_appsero_tracker() { - if ( ! class_exists( 'WeDevs\DokanMigrator\Dependencies\Appsero\Client' ) ) { + * Initiates Appsero services. + * + * @since 1.0.0 + * + * @return void + */ + public function init_appsero_tracker() { + if ( ! class_exists( 'WeDevs\DokanMigrator\Dependencies\Appsero\Client' ) ) { return; } $client = new WeDevs\DokanMigrator\Dependencies\Appsero\Client( '2852f2fd-66ff-4649-9b00-5f9ed953f8b9', 'Dokan Migrator', DOKAN_MIGRATOR_FILE ); $insights = $client->insights(); - $insights->add_extra( + $insights->add_extra( function() { return array( 'dokan_migrator_version' => DOKAN_MIGRATOR_PLUGIN_VERSION, - ); + ); } ); $insights->init(); - } + } /** * Make dokan migrator plugin HPOS supported.