/
home
/
techb158
/
l2hypotheques.com
/
wp-content
/
plugins
/
woocommerce
/
includes
/
/home/techb158/l2hypotheques.com/wp-content/plugins/woocommerce/includes
mkdir
upload
Name
Size
Mode
Actions
abstracts/
-
0755
rm
admin/
-
0755
rm
blocks/
-
0755
rm
cli/
-
0755
rm
customizer/
-
0755
rm
data-stores/
-
0755
rm
emails/
-
0755
rm
export/
-
0755
rm
gateways/
-
0755
rm
import/
-
0755
rm
integrations/
-
0755
rm
interfaces/
-
0755
rm
legacy/
-
0755
rm
libraries/
-
0755
rm
log-handlers/
-
0755
rm
payment-tokens/
-
0755
rm
product-usage/
-
0755
rm
queue/
-
0755
rm
react-admin/
-
0755
rm
rest-api/
-
0755
rm
shipping/
-
0755
rm
shortcodes/
-
0755
rm
theme-support/
-
0755
rm
tracks/
-
0755
rm
traits/
-
0755
rm
walkers/
-
0755
rm
wccom-site/
-
0755
rm
widgets/
-
0755
rm
class-wc-ajax.php
126393
0644
edit
dl
rm
class-wc-auth.php
12995
0644
edit
dl
rm
class-wc-autoloader.php
5394
0644
edit
dl
rm
class-wc-background-emailer.php
4685
0644
edit
dl
rm
class-wc-background-updater.php
3535
0644
edit
dl
rm
class-wc-brands-brand-settings-manager.php
1826
0644
edit
dl
rm
class-wc-brands-coupons.php
7059
0644
edit
dl
rm
class-wc-brands.php
35635
0644
edit
dl
rm
class-wc-breadcrumb.php
10660
0644
edit
dl
rm
class-wc-cache-helper.php
12998
0644
edit
dl
rm
class-wc-cart-fees.php
3448
0644
edit
dl
rm
class-wc-cart-session.php
25993
0644
edit
dl
rm
class-wc-cart-totals.php
29163
0644
edit
dl
rm
class-wc-cart.php
75991
0644
edit
dl
rm
class-wc-checkout.php
51349
0644
edit
dl
rm
class-wc-cli.php
3419
0644
edit
dl
rm
class-wc-comments.php
23631
0644
edit
dl
rm
class-wc-countries.php
51881
0644
edit
dl
rm
class-wc-coupon.php
44920
0644
edit
dl
rm
class-wc-customer-download-log.php
3452
0644
edit
dl
rm
class-wc-customer-download.php
10587
0644
edit
dl
rm
class-wc-customer.php
34000
0644
edit
dl
rm
class-wc-data-exception.php
1321
0644
edit
dl
rm
class-wc-data-store.php
6752
0644
edit
dl
rm
class-wc-datetime.php
2310
0644
edit
dl
rm
class-wc-deprecated-action-hooks.php
6746
0644
edit
dl
rm
class-wc-deprecated-filter-hooks.php
7518
0644
edit
dl
rm
class-wc-discounts.php
37523
0644
edit
dl
rm
class-wc-download-handler.php
29053
0644
edit
dl
rm
class-wc-emails.php
40026
0644
edit
dl
rm
class-wc-embed.php
4342
0644
edit
dl
rm
class-wc-form-handler.php
49327
0644
edit
dl
rm
class-wc-frontend-scripts.php
35185
0644
edit
dl
rm
class-wc-geo-ip.php
31159
0644
edit
dl
rm
class-wc-geolite-integration.php
2036
0644
edit
dl
rm
class-wc-geolocation.php
11615
0644
edit
dl
rm
class-wc-https.php
4439
0644
edit
dl
rm
class-wc-install.php
118843
0644
edit
dl
rm
class-wc-integrations.php
1308
0644
edit
dl
rm
class-wc-log-levels.php
3992
0644
edit
dl
rm
class-wc-logger.php
9639
0644
edit
dl
rm
class-wc-meta-data.php
2260
0644
edit
dl
rm
class-wc-order-factory.php
8868
0644
edit
dl
rm
class-wc-order-item-coupon.php
4175
0644
edit
dl
rm
class-wc-order-item-fee.php
10228
0644
edit
dl
rm
class-wc-order-item-meta.php
5942
0644
edit
dl
rm
class-wc-order-item-product.php
17962
0644
edit
dl
rm
class-wc-order-item-shipping.php
9815
0644
edit
dl
rm
class-wc-order-item-tax.php
6644
0644
edit
dl
rm
class-wc-order-item.php
21907
0644
edit
dl
rm
class-wc-order-query.php
2613
0644
edit
dl
rm
class-wc-order-refund.php
6135
0644
edit
dl
rm
class-wc-order.php
79390
0644
edit
dl
rm
class-wc-payment-gateways.php
16953
0644
edit
dl
rm
class-wc-payment-tokens.php
6390
0644
edit
dl
rm
class-wc-post-data.php
37759
0644
edit
dl
rm
class-wc-post-types.php
33680
0644
edit
dl
rm
class-wc-privacy-background-process.php
1833
0644
edit
dl
rm
class-wc-privacy-erasers.php
13941
0644
edit
dl
rm
class-wc-privacy-exporters.php
15044
0644
edit
dl
rm
class-wc-privacy.php
17629
0644
edit
dl
rm
class-wc-product-attribute.php
8057
0644
edit
dl
rm
class-wc-product-download.php
13494
0644
edit
dl
rm
class-wc-product-external.php
5104
0644
edit
dl
rm
class-wc-product-factory.php
4654
0644
edit
dl
rm
class-wc-product-grouped.php
6907
0644
edit
dl
rm
class-wc-product-query.php
2328
0644
edit
dl
rm
class-wc-product-simple.php
2765
0644
edit
dl
rm
class-wc-product-variable.php
24264
0644
edit
dl
rm
class-wc-product-variation.php
20661
0644
edit
dl
rm
class-wc-query.php
34299
0644
edit
dl
rm
class-wc-rate-limiter.php
4100
0644
edit
dl
rm
class-wc-regenerate-images-request.php
7923
0644
edit
dl
rm
class-wc-regenerate-images.php
15806
0644
edit
dl
rm
class-wc-register-wp-admin-settings.php
5171
0644
edit
dl
rm
class-wc-rest-authentication.php
22068
0644
edit
dl
rm
class-wc-rest-exception.php
276
0644
edit
dl
rm
class-wc-session-handler.php
24728
0644
edit
dl
rm
class-wc-shipping-rate.php
9566
0644
edit
dl
rm
class-wc-shipping-zone.php
13392
0644
edit
dl
rm
class-wc-shipping-zones.php
5115
0644
edit
dl
rm
class-wc-shipping.php
13160
0644
edit
dl
rm
class-wc-shortcodes.php
19274
0644
edit
dl
rm
class-wc-structured-data.php
25011
0644
edit
dl
rm
class-wc-tax.php
40694
0644
edit
dl
rm
class-wc-template-loader.php
20911
0644
edit
dl
rm
class-wc-tracker.php
52731
0644
edit
dl
rm
class-wc-validation.php
5929
0644
edit
dl
rm
class-wc-webhook.php
30807
0644
edit
dl
rm
class-woocommerce.php
63658
0644
edit
dl
rm
wc-account-functions.php
14485
0644
edit
dl
rm
wc-attribute-functions.php
22377
0644
edit
dl
rm
wc-brands-functions.php
4270
0644
edit
dl
rm
wc-cart-functions.php
21308
0644
edit
dl
rm
wc-conditional-functions.php
15902
0644
edit
dl
rm
wc-core-functions.php
80603
0644
edit
dl
rm
wc-coupon-functions.php
5698
0644
edit
dl
rm
wc-deprecated-functions.php
40731
0644
edit
dl
rm
wc-formatting-functions.php
51093
0644
edit
dl
rm
wc-interactivity-api-functions.php
2219
0644
edit
dl
rm
wc-notice-functions.php
8696
0644
edit
dl
rm
wc-order-functions.php
44448
0644
edit
dl
rm
wc-order-item-functions.php
5153
0644
edit
dl
rm
wc-order-step-logger-functions.php
6114
0644
edit
dl
rm
wc-page-functions.php
9657
0644
edit
dl
rm
wc-product-functions.php
68992
0644
edit
dl
rm
wc-rest-functions.php
14268
0644
edit
dl
rm
wc-stock-functions.php
17851
0644
edit
dl
rm
wc-template-functions.php
145297
0644
edit
dl
rm
wc-template-hooks.php
13151
0644
edit
dl
rm
wc-term-functions.php
25158
0644
edit
dl
rm
wc-update-functions.php
104334
0644
edit
dl
rm
wc-user-functions.php
34991
0644
edit
dl
rm
wc-webhook-functions.php
5905
0644
edit
dl
rm
wc-widget-functions.php
2063
0644
edit
dl
rm
Edit:
/home/techb158/l2hypotheques.com/wp-content/plugins/woocommerce/includes/class-wc-data-store.php
(6752B)
<?php /** * WC Data Store. * * @package WooCommerce\Classes * @since 3.0.0 * @version 3.0.0 */ defined( 'ABSPATH' ) || exit; /** * Data store class. */ class WC_Data_Store { /** * Contains an instance of the data store class that we are working with. * * @var WC_Data_Store */ private $instance = null; /** * Contains an array of default WC supported data stores. * Format of object name => class name. * Example: 'product' => 'WC_Product_Data_Store_CPT' * You can also pass something like product_<type> for product stores and * that type will be used first when available, if a store is requested like * this and doesn't exist, then the store would fall back to 'product'. * Ran through `woocommerce_data_stores`. * * @var array */ private $stores = array( 'coupon' => 'WC_Coupon_Data_Store_CPT', 'customer' => 'WC_Customer_Data_Store', 'customer-download' => 'WC_Customer_Download_Data_Store', 'customer-download-log' => 'WC_Customer_Download_Log_Data_Store', 'customer-session' => 'WC_Customer_Data_Store_Session', 'order' => 'WC_Order_Data_Store_CPT', 'order-refund' => 'WC_Order_Refund_Data_Store_CPT', 'order-item' => 'WC_Order_Item_Data_Store', 'order-item-coupon' => 'WC_Order_Item_Coupon_Data_Store', 'order-item-fee' => 'WC_Order_Item_Fee_Data_Store', 'order-item-product' => 'WC_Order_Item_Product_Data_Store', 'order-item-shipping' => 'WC_Order_Item_Shipping_Data_Store', 'order-item-tax' => 'WC_Order_Item_Tax_Data_Store', 'payment-token' => 'WC_Payment_Token_Data_Store', 'product' => 'WC_Product_Data_Store_CPT', 'product-grouped' => 'WC_Product_Grouped_Data_Store_CPT', 'product-variable' => 'WC_Product_Variable_Data_Store_CPT', 'product-variation' => 'WC_Product_Variation_Data_Store_CPT', 'shipping-zone' => 'WC_Shipping_Zone_Data_Store', 'webhook' => 'WC_Webhook_Data_Store', ); /** * Contains the name of the current data store's class name. * * @var string */ private $current_class_name = ''; /** * The object type this store works with. * * @var string */ private $object_type = ''; /** * Tells WC_Data_Store which object (coupon, product, order, etc) * store we want to work with. * * @throws Exception When validation fails. * @param string $object_type Name of object. */ public function __construct( $object_type ) { $this->object_type = $object_type; $this->stores = apply_filters( 'woocommerce_data_stores', $this->stores ); // If this object type can't be found, check to see if we can load one // level up (so if product-type isn't found, we try product). if ( ! array_key_exists( $object_type, $this->stores ) ) { $pieces = explode( '-', $object_type ); $object_type = $pieces[0]; } if ( array_key_exists( $object_type, $this->stores ) ) { $store = apply_filters( 'woocommerce_' . $object_type . '_data_store', $this->stores[ $object_type ] ); if ( is_object( $store ) ) { if ( ! $store instanceof WC_Object_Data_Store_Interface ) { throw new Exception( __( 'Invalid data store.', 'woocommerce' ) ); } $this->current_class_name = get_class( $store ); $this->instance = $store; } else { if ( ! class_exists( $store ) ) { throw new Exception( __( 'Invalid data store.', 'woocommerce' ) ); } $this->current_class_name = $store; $this->instance = new $store(); } } else { throw new Exception( __( 'Invalid data store.', 'woocommerce' ) ); } } /** * Only store the object type to avoid serializing the data store instance. * * @return array */ public function __sleep() { return array( 'object_type' ); } /** * Re-run the constructor with the object type. * * @throws Exception When validation fails. */ public function __wakeup() { $this->__construct( $this->object_type ); } /** * Loads a data store. * * @param string $object_type Name of object. * * @since 3.0.0 * @throws Exception When validation fails. * @return WC_Data_Store */ public static function load( $object_type ) { return new WC_Data_Store( $object_type ); } /** * Returns the class name of the current data store. * * @since 3.0.0 * @return string */ public function get_current_class_name() { return $this->current_class_name; } /** * Reads an object from the data store. * * @since 3.0.0 * @param WC_Data $data WooCommerce data instance. */ public function read( &$data ) { $this->instance->read( $data ); } /** * Reads multiple objects from the data store. * * @since 6.9.0 * @param array[WC_Data] $objects Array of object instances to read. */ public function read_multiple( &$objects = array() ) { // If the datastore allows for bulk-reading, use it. if ( is_callable( array( $this->instance, 'read_multiple' ) ) ) { $this->instance->read_multiple( $objects ); } else { foreach ( $objects as &$obj ) { $this->read( $obj ); } } } /** * Create an object in the data store. * * @since 3.0.0 * @param WC_Data $data WooCommerce data instance. */ public function create( &$data ) { $this->instance->create( $data ); } /** * Update an object in the data store. * * @since 3.0.0 * @param WC_Data $data WooCommerce data instance. */ public function update( &$data ) { $this->instance->update( $data ); } /** * Delete an object from the data store. * * @since 3.0.0 * @param WC_Data $data WooCommerce data instance. * @param array $args Array of args to pass to the delete method. */ public function delete( &$data, $args = array() ) { $this->instance->delete( $data, $args ); } /** * Data stores can define additional functions (for example, coupons have * some helper methods for increasing or decreasing usage). This passes * through to the instance if that function exists. * * @since 3.0.0 * @param string $method Method. * @param mixed $parameters Parameters. * @return mixed */ public function __call( $method, $parameters ) { if ( is_callable( array( $this->instance, $method ) ) ) { $object = array_shift( $parameters ); $parameters = array_merge( array( &$object ), $parameters ); return $this->instance->$method( ...$parameters ); } } /** * Check if the data store we are working with has a callable method. * * @param string $method Method name. * * @return bool Whether the passed method is callable. */ public function has_callable( string $method ) : bool { return is_callable( array( $this->instance, $method ) ); } }
Save
cmd:
run