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/packages/email-editor/src/Engine/Renderer/ContentRenderer/Preprocessors/class-blocks-width-preprocessor.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/Proxies/ActionsProxy.php 1
woocommerce/src/StoreApi/Utilities/CartController.php 3

class-wc-admin-notices.php

Type Line Description
TODO 459 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 165 4.0 Prevent negative value being set. #19293

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

Type Line Description
TODO 1471 Add to interface in 4.0.
TODO 1805 Deprecate unused function?
TODO 1817 Deprecate unused function?
TODO 1828 Deprecate unused function?

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

Type Line Description
TODO 451 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 4031 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.

class-blocks-width-preprocessor.php

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

DataStore.php

Type Line Description
TODO 491 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 723 use the %i placeholder to prepare the table name when available in the minimum required WordPress version.

Note.php

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

OrderTraits.php

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

PageController.php

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

ActionsProxy.php

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

CartController.php

Type Line Description
TODO 96 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 872 this can be refactored once https://github.com/woocommerce/woocommerce/pull/26101 lands.
TODO 964 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.