WooCommerce Code Reference

Markers

Table of Contents

woocommerce/includes/admin/class-wc-admin-notices.php 1
woocommerce/includes/admin/helper/class-wc-helper-api.php 1
woocommerce/includes/class-wc-shipping-rate.php 1
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 4
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php 1
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php 1
woocommerce/includes/wc-template-functions.php 1
woocommerce/lib/packages/Detection/MobileDetect.php 1
woocommerce/lib/packages/GraphQL/Executor/ReferenceExecutor.php 1
woocommerce/lib/packages/GraphQL/Type/Definition/QueryPlan.php 1
woocommerce/lib/packages/GraphQL/Type/Schema.php 1
woocommerce/lib/packages/GraphQL/Type/SchemaValidationContext.php 3
woocommerce/lib/packages/GraphQL/Utils/BuildClientSchema.php 1
woocommerce/lib/packages/Sabberworm/CSS/Value/CSSFunction.php 1
woocommerce/packages/blueprint/src/Exporters/HasAlias.php 1
woocommerce/packages/email-editor/src/Engine/Renderer/ContentRenderer/Preprocessors/class-blocks-width-preprocessor.php 1
woocommerce/packages/email-editor/vendor-prefixed/packages/Sabberworm/CSS/Value/CSSFunction.php 1
woocommerce/src/Admin/API/Reports/Coupons/DataStore.php 1
woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php 1
woocommerce/src/Admin/Notes/Note.php 1
woocommerce/src/Admin/Overrides/OrderTraits.php 1
woocommerce/src/Admin/PageController.php 1
woocommerce/src/Blocks/BlockTypes/ProductFilters.php 1
woocommerce/src/Gateways/PayPal/Request.php 1
woocommerce/src/Proxies/ActionsProxy.php 1
woocommerce/src/StoreApi/Utilities/CartController.php 3

class-wc-admin-notices.php

Type Line Description
TODO 502 remove in 4.0.0

class-wc-helper-api.php

Type Line Description
TODO 66 Check response signatures on certain endpoints.

class-wc-shipping-rate.php

Type Line Description
TODO 175 4.0 Prevent negative value being set. #19293

class-wc-product-data-store-cpt.php

Type Line Description
TODO 1558 Add to interface in 4.0.
TODO 1904 Deprecate unused function?
TODO 1917 Deprecate unused function?
TODO 1929 Deprecate unused function?

class-wc-rest-setting-options-v2-controller.php

Type Line Description
TODO 484 remove in 4.0

class-wc-rest-controller.php

Type Line Description
TODO 566 Submit this caching behavior in core.

wc-template-functions.php

Type Line Description
TODO 4289 Deprecated this function after dropping support for WP 5.6.

MobileDetect.php

Type Line Description
TODO 1357 Remove the error suppression from str_replace() call.

ReferenceExecutor.php

Type Line Description
TODO 108 make non-optional in next major release

QueryPlan.php

Type Line Description
TODO 219 evaluate if this line is really necessary.

Schema.php

Type Line Description
TODO 350 https://github.com/webonyx/graphql-php/issues/1874 - reconsider supporting typeLoader-based scalar overrides in the next major version

SchemaValidationContext.php

Type Line Description
TODO 134 Ensure proper locations.
TODO 662 validate default values?
TODO 806 Ensure they are unique per field.

BuildClientSchema.php

Type Line Description
TODO 339 Temporary workaround until Automattic\WooCommerce\Vendor\GraphQL ecosystem will fully support 'interfaces' on interface types.

CSSFunction.php

Type Line Description
TODO 37 redundant?

HasAlias.php

Type Line Description
TODO 31 Link to an example class that uses this interface. Interface HasAlias

class-blocks-width-preprocessor.php

Type Line Description
TODO 113 We could add support for other units like em, rem, etc.

CSSFunction.php

Type Line Description
TODO 37 redundant?

DataStore.php

Type Line Description
TODO 496 Upon core merge, including this in core's `class-wc-coupon-data-store-cpt.php` might make more sense.

DataStore.php

Type Line Description
TODO 811 use the %i placeholder to prepare the table name when available in the minimum required WordPress version.

Note.php

Type Line Description
TODO 496 Set a default empty array? https://github.com/woocommerce/woocommerce-admin/pull/1763#pullrequestreview-212442921.

OrderTraits.php

Type Line Description
TODO 62 If WC is currently not tax enabled, but it was before (or vice versa), would this work correctly?

PageController.php

Type Line Description
TODO 537 The entry point for the embed needs moved to this class as well.

ProductFilters.php

Type Line Description
TODO 121 Remove this conditional once the fix is released in WP. https://github.com/woocommerce/gutenberg/pull/4.

Request.php

Type Line Description
TODO 1001 The container call can be removed once we migrate this class to the `src` folder.

ActionsProxy.php

Type Line Description
TODO 39 Add the rest of the actions and filters related methods.

CartController.php

Type Line Description
TODO 99 Overriding the core add_to_cart method was necessary because core outputs notices when an item is added to the cart. For us this would cause notices to build up and output on the store, out of context. Core would need refactoring to split notices out from other cart actions.
TODO 898 this can be refactored once https://github.com/woocommerce/woocommerce/pull/26101 lands.
TODO 944 Overriding the core apply_coupon method was necessary because core outputs notices when a coupon gets applied. For us this would cause notices to build up and output on the store, out of context. Core would need refactoring to split notices out from other cart actions.