__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace WP_Statistics\Service\Analytics;
use WP_STATISTICS\Option;
class AnalyticsManager
{
public function __construct()
{
if (Option::get('use_cache_plugin') && Option::get('bypass_ad_blockers', false)) {
add_filter('wp_statistics_ajax_list', [$this, 'registerAjaxCallbacks']);
}
}
/**
* Registers AJAX actions.
*
* @todo Register ajax using Ajax::register() and send response in a standard format using Ajax::success() or Ajax::error()
*
* @param array $list
*
* @return array
*/
public function registerAjaxCallbacks($list)
{
$analyticsController = new AnalyticsController();
$list[] = [
'class' => $analyticsController,
'action' => 'hit_record',
'public' => true,
];
return $list;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DeviceDetection | Folder | 0755 |
|
|
| Referrals | Folder | 0755 |
|
|
| AnalyticsController.php | File | 1.5 KB | 0644 |
|
| AnalyticsManager.php | File | 870 B | 0644 |
|
| VisitorProfile.php | File | 6.58 KB | 0644 |
|