/
home
/
techb158
/
balacoffee.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
/home/techb158/balacoffee.com/wp-content/plugins/woocommerce/src/Internal
mkdir
upload
Name
Size
Mode
Actions
Abilities/
-
0755
rm
AbilitiesApi/
-
0755
rm
AddressProvider/
-
0755
rm
Admin/
-
0755
rm
Agentic/
-
0755
rm
BatchProcessing/
-
0755
rm
Caches/
-
0755
rm
CLI/
-
0755
rm
ComingSoon/
-
0755
rm
CostOfGoodsSold/
-
0755
rm
Customers/
-
0755
rm
DataStores/
-
0755
rm
DependencyManagement/
-
0755
rm
Email/
-
0755
rm
EmailEditor/
-
0755
rm
Features/
-
0755
rm
Integrations/
-
0755
rm
Jetpack/
-
0755
rm
Logging/
-
0755
rm
MCP/
-
0755
rm
Orders/
-
0755
rm
ProductAttributesLookup/
-
0755
rm
ProductDownloads/
-
0755
rm
ProductFeed/
-
0755
rm
ProductFilters/
-
0755
rm
ProductImage/
-
0755
rm
PushNotifications/
-
0755
rm
ReceiptRendering/
-
0755
rm
RestApi/
-
0755
rm
Settings/
-
0755
rm
StockNotifications/
-
0755
rm
Traits/
-
0755
rm
TransientFiles/
-
0755
rm
Utilities/
-
0755
rm
WCCom/
-
0755
rm
AssignDefaultCategory.php
2001
0644
edit
dl
rm
Brands.php
1300
0644
edit
dl
rm
DownloadPermissionsAdjuster.php
6678
0644
edit
dl
rm
McStats.php
2149
0644
edit
dl
rm
OrderCouponDataMigrator.php
8528
0644
edit
dl
rm
RegisterHooksInterface.php
504
0644
edit
dl
rm
RestApiControllerBase.php
8207
0644
edit
dl
rm
RestApiParameterUtil.php
5854
0644
edit
dl
rm
RestockRefundedItemsAdjuster.php
2129
0644
edit
dl
rm
Edit:
/home/techb158/balacoffee.com/wp-content/plugins/woocommerce/src/Internal/McStats.php
(2149B)
<?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(); } }
Save
cmd:
run