X7ROOT File Manager
Current Path:
/home/iptvzxij/public_html/wp-content/plugins/wp-statistics
home
/
iptvzxij
/
public_html
/
wp-content
/
plugins
/
wp-statistics
/
📁
..
📁
assets
📄
functions.php
(668 B)
📄
gulpfile.js
(6.34 KB)
📁
includes
📁
languages
📄
license.txt
(34.98 KB)
📄
readme.txt
(17.04 KB)
📁
src
📁
vendor
📁
views
📄
wp-statistics.php
(1.09 KB)
Editing: functions.php
<?php use WP_Statistics\Service\CustomEvent\CustomEventDataParser; use WP_Statistics\Models\EventsModel; if (!function_exists('wp_statistics_event')) { function wp_statistics_event($eventName, $eventData = []) { try { // Parse event data $eventDataParser = new CustomEventDataParser($eventName, $eventData); $parsedData = $eventDataParser->getParsedData(); // Insert event into the database $eventsModel = new EventsModel(); $eventsModel->insertEvent($parsedData); } catch (\Exception $e) { WP_Statistics()->log($e->getMessage(), 'error'); } } }
Upload File
Create Folder