PATH:
home
/
lab2454c
/
isaaclondston.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
API
/
Reports
<?php /** * REST API Reports exportable traits * * Collection of utility methods for exportable reports. */ namespace Automattic\WooCommerce\Admin\API\Reports; defined( 'ABSPATH' ) || exit; /** * ExportableTraits class. */ trait ExportableTraits { /** * Format numbers for CSV using store precision setting. * * @param string|float $value Numeric value. * @return string Formatted value. */ public static function csv_number_format( $value ) { $decimals = wc_get_price_decimals(); // See: @woocommerce/currency: getCurrencyFormatDecimal(). return number_format( $value, $decimals, '.', '' ); } }
[+]
Export
[+]
Variations
[+]
Downloads
[+]
Orders
[-] ExportableTraits.php
[edit]
[+]
..
[+]
Taxes
[+]
Coupons
[-] ParameterException.php
[edit]
[-] Query.php
[edit]
[+]
Categories
[-] Segmenter.php
[edit]
[+]
Stock
[-] DataStoreInterface.php
[edit]
[-] SqlQuery.php
[edit]
[-] TimeInterval.php
[edit]
[-] Controller.php
[edit]
[+]
Products
[-] DataStore.php
[edit]
[-] ExportableInterface.php
[edit]
[+]
Import
[+]
Customers
[+]
PerformanceIndicators
[+]
Revenue
[-] Cache.php
[edit]