WooCommerce Code Reference

Search results

Deprecated

Table of Contents

woocommerce/includes/abstracts/abstract-wc-settings-api.php
woocommerce/includes/abstracts/abstract-wc-shipping-method.php
woocommerce/includes/admin/class-wc-admin-duplicate-product.php
woocommerce/includes/admin/class-wc-admin-notices.php
woocommerce/includes/admin/class-wc-admin-post-types.php
woocommerce/includes/admin/class-wc-admin-taxonomies.php
woocommerce/includes/admin/class-wc-admin-webhooks.php
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php
woocommerce/includes/admin/settings/class-wc-settings-advanced.php
woocommerce/includes/class-wc-cache-helper.php
woocommerce/includes/class-wc-cart-totals.php
woocommerce/includes/class-wc-comments.php
woocommerce/includes/class-wc-countries.php
woocommerce/includes/class-wc-coupon.php
woocommerce/includes/class-wc-download-handler.php
woocommerce/includes/class-wc-emails.php
woocommerce/includes/class-wc-form-handler.php
woocommerce/includes/class-wc-geo-ip.php
woocommerce/includes/class-wc-geolite-integration.php
woocommerce/includes/class-wc-geolocation.php
woocommerce/includes/class-wc-order-item-coupon.php
woocommerce/includes/class-wc-order-item-fee.php
woocommerce/includes/class-wc-order-item-product.php
woocommerce/includes/class-wc-order-item-shipping.php
woocommerce/includes/class-wc-order-item-tax.php
woocommerce/includes/class-wc-order-refund.php
woocommerce/includes/class-wc-post-data.php
woocommerce/includes/class-wc-product-download.php
woocommerce/includes/class-wc-query.php
woocommerce/includes/class-wc-shipping.php
woocommerce/includes/class-wc-shortcodes.php
woocommerce/includes/class-wc-tax.php
woocommerce/includes/class-wc-webhook.php
woocommerce/includes/data-stores/class-wc-customer-download-data-store.php
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php
woocommerce/includes/emails/class-wc-email-customer-refunded-order.php
woocommerce/includes/emails/class-wc-email.php
woocommerce/includes/import/class-wc-product-csv-importer.php
woocommerce/includes/legacy/abstract-wc-legacy-order.php
woocommerce/includes/legacy/abstract-wc-legacy-payment-token.php
woocommerce/includes/legacy/abstract-wc-legacy-product.php
woocommerce/includes/legacy/class-wc-legacy-api.php
woocommerce/includes/legacy/class-wc-legacy-cart.php
woocommerce/includes/legacy/class-wc-legacy-shipping-zone.php
woocommerce/includes/legacy/class-wc-legacy-webhook.php
woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php
woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php
woocommerce/includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php
woocommerce/includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php
woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php
woocommerce/includes/wc-cart-functions.php
woocommerce/includes/wc-deprecated-functions.php
woocommerce/includes/wc-template-functions.php
woocommerce/includes/widgets/class-wc-widget-product-tag-cloud.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-orders-v1-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-products-v1-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-products-v2-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-webhook-deliveries-v2-controller.php

abstract-wc-settings-api.php

Line Element Reason
935 normal No longer used.
946 normal Unused.

abstract-wc-shipping-method.php

Line Element Reason
126 normal
135 normal

class-wc-admin-duplicate-product.php

Line Element Reason
228 normal

class-wc-admin-notices.php

Line Element Reason
555 normal No longer shown.
564 normal No longer shown.

class-wc-admin-post-types.php

Line Element Reason
809 normal and moved to post-data class.

class-wc-admin-taxonomies.php

Line Element Reason
109 normal No longer needed.

class-wc-admin-webhooks.php

Line Element Reason
304 normal
344 normal

class-wc-admin-list-table-products.php

Line Element Reason
402 normal Logic moved to query_filters.

class-wc-settings-advanced.php

Line Element Reason
437 normal
511 normal in favour of WC_Settings_Advanced.

class-wc-cache-helper.php

Line Element Reason
300 normal Adjusted transient usage to include versions within the transient values, making this cleanup obsolete.

class-wc-cart-totals.php

Line Element Reason
609 normal `calculate_item_subtotals` should already appropriately round the tax values.

class-wc-comments.php

Line Element Reason
94 normal
126 normal

class-wc-countries.php

Line Element Reason
143 normal This method was used to load state files, but is no longer needed. @see get_states().
376 normal

class-wc-coupon.php

Line Element Reason
830 normal In favor of WC_Discounts->is_coupon_valid.

class-wc-download-handler.php

Line Element Reason
197 normal

class-wc-emails.php

Line Element Reason
316 normal
703 normal

class-wc-form-handler.php

Line Element Reason
701 normal Logic moved to cart session handling.

class-wc-geo-ip.php

Line Element Reason
21 normal

class-wc-geolite-integration.php

Line Element Reason
21 normal
54 normal

class-wc-geolocation.php

Line Element Reason
206 normal
218 normal Extract files with PharData. Tool built into PHP since 5.3.
317 normal
330 normal
348 normal
25 normal
32 normal
40 normal

class-wc-order-item-coupon.php

Line Element Reason
143 normal
160 normal

class-wc-order-item-fee.php

Line Element Reason
314 normal

class-wc-order-item-product.php

Line Element Reason
455 normal

class-wc-order-item-shipping.php

Line Element Reason
296 normal

class-wc-order-item-tax.php

Line Element Reason
266 normal

class-wc-order-refund.php

Line Element Reason
190 normal
213 normal
224 normal

class-wc-post-data.php

Line Element Reason
498 normal
508 normal No action is necessary on changes to download paths since download_id is no longer based on file hash.
523 normal

class-wc-product-download.php

Line Element Reason
156 normal No longer using filename based hashing to keep track of files.
207 normal No longer using filename based hashing to keep track of files.

class-wc-query.php

Line Element Reason
921 normal Replaced with taxonomy.
932 normal Replaced with taxonomy.
943 normal Replaced with taxonomy.
952 normal
961 normal due to performance concerns
972 normal due to performance concerns
983 normal - Not needed anymore since WordPress 4.5.
993 normal - Nothing to remove anymore because search_post_excerpt() is deprecated.

class-wc-shipping.php

Line Element Reason
400 normal Was previously used to determine sort order of methods, but this is now controlled by zones and thus unused.

class-wc-shortcodes.php

Line Element Reason
638 normal Use WC_Shortcode_Products::order_by_rating_post_clauses().

class-wc-tax.php

Line Element Reason
46 normal
530 normal

class-wc-webhook.php

Line Element Reason
627 normal

class-wc-customer-download-data-store.php

Line Element Reason
371 normal Download id is now a static UUID and should not be changed based on file hash.

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

Line Element Reason
425 normal - Use wc_get_orders instead.

class-wc-email-customer-refunded-order.php

Line Element Reason
127 normal Unused.

class-wc-email.php

Line Element Reason
217 normal in favour of placeholders
225 normal in favour of placeholders

class-wc-product-csv-importer.php

Line Element Reason
683 normal

abstract-wc-legacy-order.php

Line Element Reason
319 normal
471 normal
566 normal since this is an alias only.
578 normal
608 normal - Replaced with better named method to reflect the actual data being returned.
620 normal Item meta no longer expanded due to new order item classes. This function now does nothing to avoid data breakage.
630 normal Logic moved to constructor
649 normal
671 normal
683 normal Moved to event handler.
693 normal
702 normal
711 normal
720 normal
733 normal No longer needs to be called directly.
743 normal Moved to template functions.
752 normal

abstract-wc-legacy-payment-token.php

Line Element Reason
35 normal - Init a token class with an ID.
46 normal - Use ::save instead.
60 normal - Use ::save instead.

abstract-wc-legacy-product.php

Line Element Reason
163 normal
174 normal
189 normal
201 normal
213 normal
223 normal Sync is done automatically on read/save, so calling this should not be needed any more.
235 normal Use wc_get_related_products instead.
248 normal Use wc_get_product_term_ids instead.
262 normal Use Product Data Store get_related_products_query instead.
274 normal Use wc_get_product instead.
285 normal
298 normal Use wc_format_sale_price instead.
307 normal Use wc_display_product_attributes instead.
320 normal Use wc_get_price_including_tax instead.
333 normal Use wc_get_price_to_display instead.
347 normal Use wc_get_price_excluding_tax instead.
358 normal
372 normal
386 normal
397 normal
416 normal
427 normal
438 normal
449 normal
463 normal
474 normal
485 normal
505 normal
516 normal
542 normal
554 normal not used in core.
620 normal in favour of Product data store's find_matching_product_variation.
631 normal Unused.
643 normal
654 normal
669 normal
681 normal
689 normal Sync is taken care of during save - no need to call this directly.

class-wc-legacy-api.php

Line Element Reason
82 normal
126 normal
158 normal
184 normal
232 normal
279 normal - REST API clases autoload.
286 normal - REST API clases autoload.
294 normal
27 normal
35 normal
43 normal

class-wc-legacy-cart.php

Line Element Reason
313 normal Taxes are never calculated if customer is tax except making this function unused.
321 normal Session is loaded via hooks rather than directly.
335 normal Calculation and coupon logic is handled in WC_Cart_Totals.
350 normal in favor to wc_get_cart_url()
361 normal in favor to wc_get_checkout_url()
372 normal in favor to wc_ship_to_billing_address_only()
383 normal
394 normal Order discounts (after tax) removed in 2.3 so multiple methods for discounts are no longer required.
410 normal Order discounts (after tax) removed in 2.3.
422 normal Coupons can not be applied after tax.
434 normal Coupons can not be applied after tax.
443 normal Coupons can not be applied after tax.
28 normal
52 normal

class-wc-legacy-shipping-zone.php

Line Element Reason
21 normal
32 normal - Init a shipping zone with an ID.
43 normal - Use ::save instead.
57 normal - Use ::save instead.

class-wc-legacy-webhook.php

Line Element Reason
110 normal
123 normal

class-wc-shipping-legacy-flat-rate.php

Line Element Reason
21 normal
309 normal Additional rates defined like this: Option Name | Additional Cost [+- Percents%] | Per Cost Type (order, class, or item).
343 normal
361 normal

class-wc-shipping-legacy-free-shipping.php

Line Element Reason
21 normal

class-wc-shipping-legacy-international-delivery.php

Line Element Reason
21 normal

class-wc-shipping-legacy-local-delivery.php

Line Element Reason
21 normal

class-wc-shipping-legacy-local-pickup.php

Line Element Reason
21 normal

wc-cart-functions.php

Line Element Reason
48 normal

wc-deprecated-functions.php

Line Element Reason
143 normal
151 normal
158 normal
165 normal
172 normal
179 normal
187 normal
200 normal
213 normal
234 normal
242 normal
250 normal
258 normal
266 normal
274 normal
282 normal
290 normal
298 normal
306 normal
314 normal
322 normal
330 normal
338 normal
346 normal
354 normal
362 normal
370 normal
378 normal
386 normal
394 normal
402 normal
410 normal
418 normal
426 normal
434 normal
442 normal
450 normal
458 normal
466 normal
474 normal
482 normal
490 normal
498 normal
506 normal
514 normal
522 normal
531 normal
541 normal
551 normal
561 normal
571 normal
580 normal
588 normal
596 normal
604 normal
612 normal
620 normal
628 normal
636 normal
644 normal
652 normal
660 normal
668 normal
676 normal
684 normal
692 normal
700 normal
708 normal
716 normal
724 normal
732 normal
740 normal
747 normal
754 normal
762 normal
770 normal
778 normal
786 normal
794 normal
802 normal
810 normal
818 normal
826 normal
834 normal
842 normal
850 normal
858 normal
866 normal
874 normal
882 normal
890 normal has no replacement
900 normal
914 normal
951 normal
998 normal
1012 normal
1025 normal
1052 normal
1069 normal
1087 normal
1105 normal
1122 normal

wc-template-functions.php

Line Element Reason
2422 normal @todo Add a notice in a future version.
3699 normal
3710 normal
3721 normal Unused.

class-wc-widget-product-tag-cloud.php

Line Element Reason
103 normal
116 normal

class-wc-rest-orders-v1-controller.php

Line Element Reason
511 normal

class-wc-rest-product-attributes-v1-controller.php

Line Element Reason
571 normal
589 normal

class-wc-rest-products-v1-controller.php

Line Element Reason
450 normal
831 normal
1062 normal

class-wc-rest-webhook-deliveries-v1-controller.php

Line Element Reason
24 normal Webhooks deliveries logs now uses logging system.

class-wc-rest-products-v2-controller.php

Line Element Reason
443 normal

class-wc-rest-system-status-v2-controller.php

Line Element Reason
565 normal
609 normal

class-wc-rest-webhook-deliveries-v2-controller.php

Line Element Reason
20 normal Webhooks deliveries logs now uses logging system.
Back to the top