PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-lite
/
includes
<?php namespace WeDevs\Dokan; /** * Dokan tracker * * @since 2.4.11 * @since 2.8.7 Using AppSero\Insights for tracking */ class Tracker { public $insights = null; /** * Class constructor * * @since 2.8.7 * * @return void */ public function __construct() { $this->appsero_init_tracker_dokan(); } /** * Initialize the plugin tracker * * @since 2.8.7 * * @return void */ public function appsero_init_tracker_dokan() { $client = new \Appsero\Client( '559bcc0d-21b4-4b34-8317-3e072badf46d', 'Dokan Multivendor Marketplace', DOKAN_FILE ); $this->insights = $client->insights(); $this->insights->add_extra( [ 'products' => $this->insights->get_post_count( 'product' ), 'orders' => $this->get_order_count(), 'is_pro' => class_exists( 'Dokan_Pro' ) ? 'Yes' : 'No', ] ); $this->insights->init_plugin(); } /** * Get number of orders * * @return integer */ protected function get_order_count() { global $wpdb; return (int) $wpdb->get_var( "SELECT count(ID) FROM $wpdb->posts WHERE post_type = 'shop_order' and post_status IN ('wc-completed', 'wc-processing', 'wc-on-hold', 'wc-refunded');"); } }
[+]
..
[-] functions-compatibility.php
[edit]
[+]
Admin
[-] wc-legacy-functions.php
[edit]
[+]
Walkers
[-] Rewrites.php
[edit]
[-] Registration.php
[edit]
[+]
Emails
[+]
Upgrade
[+]
ThemeSupport
[+]
Exceptions
[-] Commission.php
[edit]
[+]
Install
[-] Assets.php
[edit]
[+]
Abstracts
[-] PageViews.php
[edit]
[-] Privacy.php
[edit]
[+]
Order
[+]
Widgets
[+]
woo-views
[-] Ajax.php
[edit]
[-] Core.php
[edit]
[+]
REST
[-] wc-functions.php
[edit]
[-] functions.php
[edit]
[+]
Withdraw
[+]
Dashboard
[+]
Vendor
[+]
Traits
[-] template-tags.php
[edit]
[+]
Product
[-] Tracker.php
[edit]
[-] reports.php
[edit]
[-] wc-template.php
[edit]
[+]
Shortcodes