SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > woocommerce > > src > Internal


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce//src/Internal

NameTypeSizeLast ModifiedActions
AddressProvider Directory - -
Admin Directory - -
BatchProcessing Directory - -
ComingSoon Directory - -
CostOfGoodsSold Directory - -
DataStores Directory - -
DependencyManagement Directory - -
Email Directory - -
EmailEditor Directory - -
Features Directory - -
Font Directory - -
Integrations Directory - -
Logging Directory - -
Orders Directory - -
ProductAttributesLookup Directory - -
ProductDownloads Directory - -
ProductFilters Directory - -
ProductImage Directory - -
ReceiptRendering Directory - -
Settings Directory - -
Traits Directory - -
TransientFiles Directory - -
Utilities Directory - -
WCCom Directory - -
AssignDefaultCategory.php File 2001 bytes August 27 2024 23:04:44.
Brands.php File 1520 bytes May 12 2025 21:07:28.
DownloadPermissionsAdjuster.php File 6678 bytes April 19 2023 03:03:20.
McStats.php File 2149 bytes September 23 2024 20:44:04.
OrderCouponDataMigrator.php File 8528 bytes December 18 2024 22:19:16.
RegisterHooksInterface.php File 504 bytes November 28 2024 03:41:18.
RestApiControllerBase.php File 8207 bytes June 23 2025 19:46:28.
RestApiParameterUtil.php File 5854 bytes May 28 2024 14:28:20.
RestockRefundedItemsAdjuster.php File 2129 bytes June 22 2021 15:24:06.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce//src/Internal/McStats.php

<?php
/**
 * WooCommerce MC Stats package
 */

declare( strict_types = 1 );

namespace Automattic\WooCommerce\Internal;

use Automattic\Jetpack\A8c_Mc_Stats;

/**
 * Class MC Stats, used to record internal usage stats for Automattic.
 *
 * This class is a wrapper around the Jetpack MC Stats package.
 * See https://github.com/Automattic/jetpack-a8c-mc-stats/tree/trunk for more details.
 */
class McStats extends A8c_Mc_Stats {

	/**
	 * Return the stats from a group in an array ready to be added as parameters in a query string
	 *
	 * Jetpack MC Stats package prefixes group names with "x_jetpack-" so we override this method to prefix group names with "x_woocommerce-".
	 *
	 * @param string $group_name The name of the group to retrieve.
	 * @return array Array with one item, where the key is the prefixed group and the value are all stats concatenated with a comma. If group not found, an empty array will be returned
	 */
	public function get_group_query_args( $group_name ) {
		$stats = $this->get_current_stats();
		if ( isset( $stats[ $group_name ] ) && ! empty( $stats[ $group_name ] ) ) {
			return array( "x_woocommerce-{$group_name}" => implode( ',', $stats[ $group_name ] ) );
		}
		return array();
	}

	/**
	 * Outputs the tracking pixels for the current stats and empty the stored stats from the object
	 *
	 * @return void
	 */
	public function do_stats() {
		if ( ! \WC_Site_Tracking::is_tracking_enabled() ) {
			return;
		}

		parent::do_stats();
	}

	/**
	 * Runs stats code for a one-off, server-side.
	 *
	 * @param string $url string The URL to be pinged. Should include `x_woocommerce-{$group}={$stats}` or whatever we want to store.
	 *
	 * @return bool If it worked.
	 */
	public function do_server_side_stat( $url ) {
		if ( ! \WC_Site_Tracking::is_tracking_enabled() ) {
			return false;
		}

		return parent::do_server_side_stat( $url );
	}

	/**
	 * Pings the stats server for the current stats and empty the stored stats from the object
	 *
	 * @return void
	 */
	public function do_server_side_stats() {
		if ( ! \WC_Site_Tracking::is_tracking_enabled() ) {
			return;
		}

		parent::do_server_side_stats();
	}
}

SILENT KILLER Tool