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/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 472 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 1496 Add to interface in 4.0.
TODO 1830 Deprecate unused function?
TODO 1842 Deprecate unused function?
TODO 1853 Deprecate unused function?

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

Type Line Description
TODO 457 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 4084 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.

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 67 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 495 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 793 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 60 If WC is currently not tax enabled, but it was before (or vice versa), would this work correctly?

PageController.php

Type Line Description
TODO 533 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 890 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 101 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 906 this can be refactored once https://github.com/woocommerce/woocommerce/pull/26101 lands.
TODO 952 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.