WooCommerce Code Reference

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-setup-wizard.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/admin/settings/class-wc-settings-page.php
woocommerce/includes/class-wc-cache-helper.php
woocommerce/includes/class-wc-cart-totals.php
woocommerce/includes/class-wc-cart.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-item.php
woocommerce/includes/class-wc-order-refund.php
woocommerce/includes/class-wc-order.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-session-handler.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/class-woocommerce.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/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.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-cart.php
woocommerce/includes/legacy/class-wc-legacy-shipping-zone.php
woocommerce/includes/legacy/class-wc-legacy-webhook.php
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhook-deliveries-v2-controller.php
woocommerce/includes/rest-api/Package.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/tracks/events/class-wc-admin-setup-wizard-tracking.php
woocommerce/includes/tracks/events/class-wc-orders-tracking.php
woocommerce/includes/wc-cart-functions.php
woocommerce/includes/wc-core-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/lib/packages/Detection/MobileDetect.php
woocommerce/src/Admin/API/Options.php
woocommerce/src/Admin/DataSourcePoller.php
woocommerce/src/Admin/FeaturePlugin.php
woocommerce/src/Admin/Features/Features.php
woocommerce/src/Admin/Features/Navigation/Init.php
woocommerce/src/Admin/Features/Onboarding.php
woocommerce/src/Admin/Features/OnboardingTasks/Task.php
woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php
woocommerce/src/Admin/Features/OnboardingTasks/TaskListSection.php
woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/SectionInterface.php
woocommerce/src/Admin/Loader.php
woocommerce/src/Admin/Notes/DeprecatedNotes.php
woocommerce/src/Admin/RemoteInboxNotifications/BaseLocationCountryRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/BaseLocationStateRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/ComparisonOperation.php
woocommerce/src/Admin/RemoteInboxNotifications/EvaluateAndGetStatus.php
woocommerce/src/Admin/RemoteInboxNotifications/EvaluationLogger.php
woocommerce/src/Admin/RemoteInboxNotifications/FailRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/GetRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/IsEcommerceRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/IsWooExpressRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/NoteStatusRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/NotRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/OnboardingProfileRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/OptionRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/OrderCountRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/OrdersProvider.php
woocommerce/src/Admin/RemoteInboxNotifications/OrRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/PassRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/PluginsActivatedRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/PluginVersionRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/ProductCountRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/PublishAfterTimeRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/PublishBeforeTimeRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/RuleEvaluator.php
woocommerce/src/Admin/RemoteInboxNotifications/StoredStateRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/StoredStateSetupForProducts.php
woocommerce/src/Admin/RemoteInboxNotifications/TotalPaymentsVolumeProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/ArrayColumn.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/ArrayFlatten.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/ArrayKeys.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/ArraySearch.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/ArrayValues.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/Count.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/DotNotation.php
woocommerce/src/Admin/RemoteInboxNotifications/Transformers/PrepareUrl.php
woocommerce/src/Admin/RemoteInboxNotifications/TransformerService.php
woocommerce/src/Admin/RemoteInboxNotifications/WCAdminActiveForProvider.php
woocommerce/src/Admin/RemoteInboxNotifications/WCAdminActiveForRuleProcessor.php
woocommerce/src/Admin/RemoteInboxNotifications/WooCommerceAdminUpdatedRuleProcessor.php
woocommerce/src/Blocks/Domain/Services/CheckoutFields.php
woocommerce/src/Blocks/Domain/Services/functions.php
woocommerce/src/Blocks/Utils/BlocksWpQuery.php
woocommerce/src/Database/Migrations/TableMigrator.php

abstract-wc-settings-api.php

Line Element Reason
999 WC_Settings_API::validate_settings_fields() No longer used.
1010 WC_Settings_API::format_settings() Unused.

abstract-wc-shipping-method.php

Line Element Reason
126 WC_Shipping_Method::$availability
135 WC_Shipping_Method::$countries

class-wc-admin-duplicate-product.php

Line Element Reason
228 WC_Admin_Duplicate_Product::get_product_to_duplicate()

class-wc-admin-notices.php

Line Element Reason
93 WC_Admin_Notices::prepare_note_with_nonce()
413 WC_Admin_Notices::install_notice()
549 WC_Admin_Notices::wp_php_min_requirements_notice() WordPress and PHP minimum requirements notices are no longer shown.
690 WC_Admin_Notices::simplify_commerce_notice() No longer shown.
699 WC_Admin_Notices::theme_check_notice() No longer shown.

class-wc-admin-post-types.php

Line Element Reason
751 WC_Admin_Post_Types::process_product_file_download_paths() and moved to post-data class.

class-wc-admin-setup-wizard.php

Line Element Reason
66 WC_Admin_Setup_Wizard::__construct()
75 WC_Admin_Setup_Wizard::admin_menus()
87 WC_Admin_Setup_Wizard::should_show_theme()
105 WC_Admin_Setup_Wizard::should_show_automated_tax()
128 WC_Admin_Setup_Wizard::should_show_mailchimp()
141 WC_Admin_Setup_Wizard::should_show_facebook()
153 WC_Admin_Setup_Wizard::is_wc_admin_active()
168 WC_Admin_Setup_Wizard::should_show_wc_admin()
180 WC_Admin_Setup_Wizard::should_show_wc_admin_onboarding()
194 WC_Admin_Setup_Wizard::should_show_recommended_step()
210 WC_Admin_Setup_Wizard::enqueue_scripts()
219 WC_Admin_Setup_Wizard::setup_wizard()
310 WC_Admin_Setup_Wizard::get_next_step_link()
334 WC_Admin_Setup_Wizard::setup_wizard_header()
362 WC_Admin_Setup_Wizard::setup_wizard_footer()
382 WC_Admin_Setup_Wizard::setup_wizard_steps()
427 WC_Admin_Setup_Wizard::setup_wizard_content()
441 WC_Admin_Setup_Wizard::wc_setup_new_onboarding()
468 WC_Admin_Setup_Wizard::wc_setup_new_onboarding_save()
609 WC_Admin_Setup_Wizard::tracking_modal()
660 WC_Admin_Setup_Wizard::wc_setup_store_setup_save()
701 WC_Admin_Setup_Wizard::run_deferred_actions()
726 WC_Admin_Setup_Wizard::install_plugin()
762 WC_Admin_Setup_Wizard::install_theme()
781 WC_Admin_Setup_Wizard::install_jetpack()
797 WC_Admin_Setup_Wizard::install_woocommerce_services()
815 WC_Admin_Setup_Wizard::get_wcs_requisite_plugins()
838 WC_Admin_Setup_Wizard::plugin_install_info()
857 WC_Admin_Setup_Wizard::get_wizard_shipping_methods()
890 WC_Admin_Setup_Wizard::shipping_method_selection_form()
951 WC_Admin_Setup_Wizard::get_product_weight_selection()
975 WC_Admin_Setup_Wizard::get_product_dimension_selection()
999 WC_Admin_Setup_Wizard::wc_setup_shipping()
1168 WC_Admin_Setup_Wizard::wc_setup_shipping_save()
1180 WC_Admin_Setup_Wizard::is_stripe_supported_country()
1217 WC_Admin_Setup_Wizard::is_paypal_supported_currency()
1258 WC_Admin_Setup_Wizard::is_klarna_checkout_supported_country()
1276 WC_Admin_Setup_Wizard::is_klarna_payments_supported_country()
1293 WC_Admin_Setup_Wizard::is_square_supported_country()
1312 WC_Admin_Setup_Wizard::is_eway_payments_supported_country()
1328 WC_Admin_Setup_Wizard::is_shipstation_supported_country()
1345 WC_Admin_Setup_Wizard::is_wcs_shipping_labels_supported_country()
1359 WC_Admin_Setup_Wizard::get_current_user_email()
1373 WC_Admin_Setup_Wizard::get_wizard_available_in_cart_payment_gateways()
1519 WC_Admin_Setup_Wizard::get_wizard_in_cart_payment_gateways()
1589 WC_Admin_Setup_Wizard::get_wizard_manual_payment_gateways()
1623 WC_Admin_Setup_Wizard::display_service_item()
1731 WC_Admin_Setup_Wizard::is_featured_service()
1744 WC_Admin_Setup_Wizard::is_not_featured_service()
1754 WC_Admin_Setup_Wizard::wc_setup_payment()
1830 WC_Admin_Setup_Wizard::wc_setup_payment_save()
1877 WC_Admin_Setup_Wizard::wc_setup_recommended()
1965 WC_Admin_Setup_Wizard::wc_setup_recommended_save()
1989 WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list()
2012 WC_Admin_Setup_Wizard::wc_setup_activate_get_feature_list_str()
2038 WC_Admin_Setup_Wizard::wc_setup_activate()
2182 WC_Admin_Setup_Wizard::get_all_activate_errors()
2196 WC_Admin_Setup_Wizard::get_activate_error_message()
2209 WC_Admin_Setup_Wizard::wc_setup_activate_save()
2218 WC_Admin_Setup_Wizard::wc_setup_ready()

class-wc-admin-taxonomies.php

Line Element Reason
115 WC_Admin_Taxonomies::delete_term() No longer needed.

class-wc-admin-webhooks.php

Line Element Reason
409 WC_Admin_Webhooks::logs_output()
449 WC_Admin_Webhooks::get_logs_navigation()

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

Line Element Reason
403 WC_Admin_List_Table_Products::sku_search() Logic moved to query_filters.

class-wc-settings-advanced.php

Line Element Reason
438 WC_Settings_Advanced::form_method()
510 WC_Settings_Rest_API in favour of WC_Settings_Advanced.

class-wc-settings-page.php

Line Element Reason
106 WC_Settings_Page::get_settings() Use 'get_settings_for_section' (passing an empty string for default section)

class-wc-cache-helper.php

Line Element Reason
304 WC_Cache_Helper::delete_version_transients() Adjusted transient usage to include versions within the transient values, making this cleanup obsolete.

class-wc-cart-totals.php

Line Element Reason
618 WC_Cart_Totals::round_merged_taxes() `calculate_item_subtotals` should already appropriately round the tax values.

class-wc-cart.php

Line Element Reason
1704 WC_Cart::is_coupon_emails_allowed() In favor of static method Automattic\WooCommerce\Utilities\DiscountsUtil::is_coupon_emails_allowed.

class-wc-comments.php

Line Element Reason
105 WC_Comments::exclude_order_comments_from_feed_join()
137 WC_Comments::exclude_webhook_comments_from_feed_join()

class-wc-countries.php

Line Element Reason
180 WC_Countries::load_country_states() This method was used to load state files, but is no longer needed. @see get_states().
435 WC_Countries::countries_using_vat()

class-wc-coupon.php

Line Element Reason
896 WC_Coupon::is_valid() In favor of WC_Discounts->is_coupon_valid.

class-wc-download-handler.php

Line Element Reason
208 WC_Download_Handler::count_download()

class-wc-emails.php

Line Element Reason
320 WC_Emails::email_footer_replace_site_title()
795 WC_Emails::order_schema_markup()

class-wc-form-handler.php

Line Element Reason
737 WC_Form_Handler::order_again() Logic moved to cart session handling.

class-wc-geo-ip.php

Line Element Reason
21 WC_Geo_IP

class-wc-geolite-integration.php

Line Element Reason
21 WC_Geolite_Integration
54 WC_Geolite_Integration::get_country_iso()

class-wc-geolocation.php

Line Element Reason
211 WC_Geolocation::get_local_database_path()
223 WC_Geolocation::update_database() Extract files with PharData. Tool built into PHP since 5.3.
328 WC_Geolocation::init()
341 WC_Geolocation::disable_geolocation_on_legacy_php()
359 WC_Geolocation::maybe_update_database()
25 WC_Geolocation::GEOLITE_DB
32 WC_Geolocation::GEOLITE_IPV6_DB
40 WC_Geolocation::GEOLITE2_DB

class-wc-order-item-coupon.php

Line Element Reason
143 WC_Order_Item_Coupon::offsetGet()
161 WC_Order_Item_Coupon::offsetSet()

class-wc-order-item-fee.php

Line Element Reason
317 WC_Order_Item_Fee::offsetSet()

class-wc-order-item-product.php

Line Element Reason
476 WC_Order_Item_Product::offsetSet()
25 WC_Order_Item_Product::$legacy_values For legacy actions.
33 WC_Order_Item_Product::$legacy_cart_item_key For legacy actions.

class-wc-order-item-shipping.php

Line Element Reason
299 WC_Order_Item_Shipping::offsetSet()

class-wc-order-item-tax.php

Line Element Reason
267 WC_Order_Item_Tax::offsetSet()

class-wc-order-item.php

Line Element Reason
25 WC_Order_Item::$legacy_values For legacy actions.
33 WC_Order_Item::$legacy_cart_item_key For legacy actions.
76 WC_Order_Item::$legacy_package_key For legacy actions.

class-wc-order-refund.php

Line Element Reason
206 WC_Order_Refund::get_refund()
229 WC_Order_Refund::get_refund_amount()
240 WC_Order_Refund::get_refund_reason()

class-wc-order.php

Line Element Reason
117 WC_Order::$refunds

class-wc-post-data.php

Line Element Reason
560 WC_Post_Data::sync_product_stock_status()
570 WC_Post_Data::process_product_file_download_paths() No action is necessary on changes to download paths since download_id is no longer based on file hash.
585 WC_Post_Data::set_object_terms()

class-wc-product-download.php

Line Element Reason
294 WC_Product_Download::set_previous_hash() No longer using filename based hashing to keep track of files.
359 WC_Product_Download::get_previous_hash() No longer using filename based hashing to keep track of files.

class-wc-query.php

Line Element Reason
962 WC_Query::rating_filter_meta_query() Replaced with taxonomy.
973 WC_Query::visibility_meta_query() Replaced with taxonomy.
984 WC_Query::stock_status_meta_query() Replaced with taxonomy.
993 WC_Query::layered_nav_init()
1002 WC_Query::get_products_in_view() due to performance concerns
1013 WC_Query::layered_nav_query() due to performance concerns
1024 WC_Query::search_post_excerpt() - Not needed anymore since WordPress 4.5.
1034 WC_Query::remove_posts_where() - Nothing to remove anymore because search_post_excerpt() is deprecated.

class-wc-session-handler.php

Line Element Reason
424 WC_Session_Handler::nonce_user_logged_out()

class-wc-shipping.php

Line Element Reason
409 WC_Shipping::sort_shipping_methods() 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
678 WC_Shortcodes::order_by_rating_post_clauses() Use WC_Shortcode_Products::order_by_rating_post_clauses().

class-wc-tax.php

Line Element Reason
48 WC_Tax::maybe_remove_tax_class_rates()
547 WC_Tax::get_shop_base_rate()

class-wc-webhook.php

Line Element Reason
592 WC_Webhook::get_delivery_log()

class-woocommerce.php

Line Element Reason
88 WooCommerce::$api The Legacy REST API has been removed from WooCommerce core. This property will be null unless the WooCommerce Legacy REST API plugin is installed.

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

Line Element Reason
496 WC_Customer_Download_Data_Store::update_download_id() 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
475 WC_Order_Data_Store_CPT::get_orders() - Use wc_get_orders instead.

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

Line Element Reason
127 WC_Email_Customer_Refunded_Order::set_email_strings() Unused.

class-wc-email.php

Line Element Reason
221 WC_Email::$find in favour of placeholders
229 WC_Email::$replace in favour of placeholders

class-wc-gateway-paypal-pdt-handler.php

Line Element Reason
104 WC_Gateway_Paypal_PDT_Handler::check_response() Use check_response_for_order instead.

class-wc-product-csv-importer.php

Line Element Reason
736 WC_Product_CSV_Importer::get_formating_callback()

abstract-wc-legacy-order.php

Line Element Reason
319 WC_Abstract_Legacy_Order::get_product_from_item()
471 WC_Abstract_Legacy_Order::has_meta()
566 WC_Abstract_Legacy_Order::get_total_shipping() since this is an alias only.
578 WC_Abstract_Legacy_Order::get_item_meta()
608 WC_Abstract_Legacy_Order::get_used_coupons() - Replaced with better named method to reflect the actual data being returned.
620 WC_Abstract_Legacy_Order::expand_item_meta() Item meta no longer expanded due to new order item classes. This function now does nothing to avoid data breakage.
630 WC_Abstract_Legacy_Order::init() Logic moved to constructor
649 WC_Abstract_Legacy_Order::get_order()
671 WC_Abstract_Legacy_Order::populate()
683 WC_Abstract_Legacy_Order::cancel_order() Moved to event handler.
693 WC_Abstract_Legacy_Order::record_product_sales()
702 WC_Abstract_Legacy_Order::increase_coupon_usage_counts()
711 WC_Abstract_Legacy_Order::decrease_coupon_usage_counts()
720 WC_Abstract_Legacy_Order::reduce_order_stock()
733 WC_Abstract_Legacy_Order::send_stock_notifications() No longer needs to be called directly.
743 WC_Abstract_Legacy_Order::email_order_items_table() Moved to template functions.
752 WC_Abstract_Legacy_Order::get_order_currency()

abstract-wc-legacy-payment-token.php

Line Element Reason
35 WC_Legacy_Payment_Token::read() - Init a token class with an ID.
46 WC_Legacy_Payment_Token::update() - Use ::save instead.
60 WC_Legacy_Payment_Token::create() - Use ::save instead.

abstract-wc-legacy-product.php

Line Element Reason
163 WC_Abstract_Legacy_Product::get_variation_default_attributes()
174 WC_Abstract_Legacy_Product::get_gallery_attachment_ids()
189 WC_Abstract_Legacy_Product::set_stock()
201 WC_Abstract_Legacy_Product::reduce_stock()
213 WC_Abstract_Legacy_Product::increase_stock()
223 WC_Abstract_Legacy_Product::check_stock_status() Sync is done automatically on read/save, so calling this should not be needed any more.
235 WC_Abstract_Legacy_Product::get_related() Use wc_get_related_products instead.
248 WC_Abstract_Legacy_Product::get_related_terms() Use wc_get_product_term_ids instead.
262 WC_Abstract_Legacy_Product::build_related_query() Use Product Data Store get_related_products_query instead.
274 WC_Abstract_Legacy_Product::get_child() Use wc_get_product instead.
285 WC_Abstract_Legacy_Product::get_price_html_from_text()
298 WC_Abstract_Legacy_Product::get_price_html_from_to() Use wc_format_sale_price instead.
307 WC_Abstract_Legacy_Product::list_attributes() Use wc_display_product_attributes instead.
320 WC_Abstract_Legacy_Product::get_price_including_tax() Use wc_get_price_including_tax instead.
333 WC_Abstract_Legacy_Product::get_display_price() Use wc_get_price_to_display instead.
347 WC_Abstract_Legacy_Product::get_price_excluding_tax() Use wc_get_price_excluding_tax instead.
358 WC_Abstract_Legacy_Product::adjust_price()
372 WC_Abstract_Legacy_Product::get_categories()
386 WC_Abstract_Legacy_Product::get_tags()
397 WC_Abstract_Legacy_Product::get_post_data()
416 WC_Abstract_Legacy_Product::get_parent()
427 WC_Abstract_Legacy_Product::get_upsells()
438 WC_Abstract_Legacy_Product::get_cross_sells()
449 WC_Abstract_Legacy_Product::has_default_attributes()
463 WC_Abstract_Legacy_Product::get_variation_id()
474 WC_Abstract_Legacy_Product::get_variation_description()
485 WC_Abstract_Legacy_Product::has_all_attributes_set()
505 WC_Abstract_Legacy_Product::parent_is_visible()
516 WC_Abstract_Legacy_Product::get_total_stock()
542 WC_Abstract_Legacy_Product::get_formatted_variation_attributes()
554 WC_Abstract_Legacy_Product::variable_product_sync() not used in core.
620 WC_Abstract_Legacy_Product::get_matching_variation() in favour of Product data store's find_matching_product_variation.
631 WC_Abstract_Legacy_Product::enable_dimensions_display() Unused.
643 WC_Abstract_Legacy_Product::get_rating_html()
654 WC_Abstract_Legacy_Product::sync_average_rating()
669 WC_Abstract_Legacy_Product::sync_rating_count()
681 WC_Abstract_Legacy_Product::get_files()
689 WC_Abstract_Legacy_Product::grouped_product_sync() Sync is taken care of during save - no need to call this directly.

class-wc-legacy-cart.php

Line Element Reason
314 WC_Legacy_Cart::remove_taxes() Taxes are never calculated if customer is tax except making this function unused.
322 WC_Legacy_Cart::init() Session is loaded via hooks rather than directly.
336 WC_Legacy_Cart::get_discounted_price() Calculation and coupon logic is handled in WC_Cart_Totals.
351 WC_Legacy_Cart::get_cart_url() in favor to wc_get_cart_url()
362 WC_Legacy_Cart::get_checkout_url() in favor to wc_get_checkout_url()
373 WC_Legacy_Cart::ship_to_billing_address_only() in favor to wc_ship_to_billing_address_only()
384 WC_Legacy_Cart::coupons_enabled()
395 WC_Legacy_Cart::get_discounts_before_tax() Order discounts (after tax) removed in 2.3 so multiple methods for discounts are no longer required.
411 WC_Legacy_Cart::get_order_discount_total() Order discounts (after tax) removed in 2.3.
423 WC_Legacy_Cart::apply_cart_discounts_after_tax() Coupons can not be applied after tax.
435 WC_Legacy_Cart::apply_product_discounts_after_tax() Coupons can not be applied after tax.
444 WC_Legacy_Cart::get_discounts_after_tax() Coupons can not be applied after tax.
29 WC_Legacy_Cart::$cart_session_data
53 WC_Legacy_Cart::$coupon_applied_count

class-wc-legacy-shipping-zone.php

Line Element Reason
21 WC_Legacy_Shipping_Zone::get_zone_id()
32 WC_Legacy_Shipping_Zone::read() - Init a shipping zone with an ID.
43 WC_Legacy_Shipping_Zone::update() - Use ::save instead.
57 WC_Legacy_Shipping_Zone::create() - Use ::save instead.

class-wc-legacy-webhook.php

Line Element Reason
110 WC_Legacy_Webhook::get_post_data()
123 WC_Legacy_Webhook::update_status()

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

Line Element Reason
515 WC_REST_Orders_V1_Controller::create_base_order()

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

Line Element Reason
606 WC_REST_Product_Attributes_V1_Controller::validate_attribute_slug()
627 WC_REST_Product_Attributes_V1_Controller::flush_rewrite_rules()

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

Line Element Reason
452 WC_REST_Products_V1_Controller::get_product_menu_order()
833 WC_REST_Products_V1_Controller::save_product_images()
1064 WC_REST_Products_V1_Controller::save_product_meta()

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

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

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

Line Element Reason
446 WC_REST_Products_V2_Controller::get_attribute_taxonomy_label()

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

Line Element Reason
680 WC_REST_System_Status_V2_Controller::get_item_mappings()
757 WC_REST_System_Status_V2_Controller::get_environment_info()

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

Line Element Reason
20 WC_REST_Webhook_Deliveries_V2_Controller Webhooks deliveries logs now uses logging system.

Package.php

Line Element Reason
19 Package Use \Automattic\WooCommerce\RestApi\Server directly.
34 Package::init() since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::instance()->init()
45 Package::get_version() since 4.5.0. This tracks WooCommerce version now.
56 Package::get_path() since 4.5.0. Directly call Automattic\WooCommerce\RestApi\Server::get_path()
27 Package::VERSION since 4.5.0. This tracks WooCommerce version now.

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

Line Element Reason
21 WC_Shipping_Legacy_Flat_Rate
331 WC_Shipping_Legacy_Flat_Rate::calculate_extra_shipping() Additional rates defined like this: Option Name | Additional Cost [+- Percents%] | Per Cost Type (order, class, or item).
365 WC_Shipping_Legacy_Flat_Rate::calc_percentage_adjustment()
383 WC_Shipping_Legacy_Flat_Rate::get_extra_cost()
50 WC_Shipping_Legacy_Flat_Rate::$options

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

Line Element Reason
23 WC_Shipping_Legacy_Free_Shipping

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

Line Element Reason
21 WC_Shipping_Legacy_International_Delivery

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

Line Element Reason
21 WC_Shipping_Legacy_Local_Delivery

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

Line Element Reason
21 WC_Shipping_Legacy_Local_Pickup

class-wc-admin-setup-wizard-tracking.php

Line Element Reason
28 WC_Admin_Setup_Wizard_Tracking::init()
38 WC_Admin_Setup_Wizard_Tracking::get_current_step()
48 WC_Admin_Setup_Wizard_Tracking::add_footer_scripts()
57 WC_Admin_Setup_Wizard_Tracking::dequeue_non_allowed_scripts()
78 WC_Admin_Setup_Wizard_Tracking::track_start()
87 WC_Admin_Setup_Wizard_Tracking::track_ready_next_steps()
96 WC_Admin_Setup_Wizard_Tracking::add_step_save_events()
105 WC_Admin_Setup_Wizard_Tracking::track_store_setup()
114 WC_Admin_Setup_Wizard_Tracking::track_payments()
123 WC_Admin_Setup_Wizard_Tracking::track_shipping()
132 WC_Admin_Setup_Wizard_Tracking::track_recommended()
141 WC_Admin_Setup_Wizard_Tracking::track_jetpack_activate()
150 WC_Admin_Setup_Wizard_Tracking::track_next_steps()
159 WC_Admin_Setup_Wizard_Tracking::track_skip_step()
170 WC_Admin_Setup_Wizard_Tracking::set_obw_steps()

class-wc-orders-tracking.php

Line Element Reason
48 WC_Orders_Tracking::track_order_search()

wc-cart-functions.php

Line Element Reason
49 wc_load_persistent_cart()

wc-core-functions.php

Line Element Reason
1118 get_woocommerce_api_url() The Legacy REST API has been removed from WooCommerce core.

wc-deprecated-functions.php

Line Element Reason
145 woocommerce_show_messages()
153 woocommerce_weekend_area_js()
160 woocommerce_tooltip_js()
167 woocommerce_datepicker_js()
174 woocommerce_admin_scripts()
181 woocommerce_create_page()
189 woocommerce_readfile_chunked()
202 woocommerce_format_total()
215 woocommerce_get_formatted_product_name()
236 get_product()
244 woocommerce_protected_product_add_to_cart()
252 woocommerce_empty_cart()
260 woocommerce_load_persistent_cart()
268 woocommerce_add_to_cart_message()
276 woocommerce_clear_cart_after_payment()
284 woocommerce_cart_totals_subtotal_html()
292 woocommerce_cart_totals_shipping_html()
300 woocommerce_cart_totals_coupon_html()
308 woocommerce_cart_totals_order_total_html()
316 woocommerce_cart_totals_fee_html()
324 woocommerce_cart_totals_shipping_method_label()
332 woocommerce_get_template_part()
340 woocommerce_get_template()
348 woocommerce_locate_template()
356 woocommerce_mail()
364 woocommerce_disable_admin_bar()
372 woocommerce_create_new_customer()
380 woocommerce_set_customer_auth_cookie()
388 woocommerce_update_new_customer_past_orders()
396 woocommerce_paying_customer()
404 woocommerce_customer_bought_product()
412 woocommerce_customer_has_capability()
420 woocommerce_sanitize_taxonomy_name()
428 woocommerce_get_filename_from_url()
436 woocommerce_get_dimension()
444 woocommerce_get_weight()
452 woocommerce_trim_zeros()
460 woocommerce_round_tax_total()
468 woocommerce_format_decimal()
476 woocommerce_clean()
484 woocommerce_array_overlay()
492 woocommerce_price()
500 woocommerce_let_to_num()
508 woocommerce_date_format()
516 woocommerce_time_format()
524 woocommerce_timezone_string()
533 woocommerce_rgb_from_hex()
543 woocommerce_hex_darker()
553 woocommerce_hex_lighter()
563 woocommerce_light_or_dark()
573 woocommerce_format_hex()
582 woocommerce_get_order_id_by_order_key()
590 woocommerce_downloadable_file_permission()
598 woocommerce_downloadable_product_permissions()
606 woocommerce_add_order_item()
614 woocommerce_delete_order_item()
622 woocommerce_update_order_item_meta()
630 woocommerce_add_order_item_meta()
638 woocommerce_delete_order_item_meta()
646 woocommerce_get_order_item_meta()
654 woocommerce_cancel_unpaid_orders()
662 woocommerce_processing_order_count()
670 woocommerce_get_page_id()
678 woocommerce_get_endpoint_url()
686 woocommerce_lostpassword_url()
694 woocommerce_customer_edit_account_url()
702 woocommerce_nav_menu_items()
710 woocommerce_nav_menu_item_classes()
718 woocommerce_list_pages()
726 woocommerce_product_dropdown_categories()
734 woocommerce_walk_category_dropdown_tree()
742 woocommerce_taxonomy_metadata_wpdbfix()
749 wc_taxonomy_metadata_wpdbfix()
756 woocommerce_order_terms()
764 woocommerce_set_term_order()
772 woocommerce_terms_clauses()
780 _woocommerce_term_recount()
788 woocommerce_recount_after_stock_change()
796 woocommerce_change_term_counts()
804 woocommerce_get_product_ids_on_sale()
812 woocommerce_get_featured_product_ids()
820 woocommerce_get_product_terms()
828 woocommerce_product_post_type_link()
836 woocommerce_placeholder_img_src()
844 woocommerce_placeholder_img()
852 woocommerce_get_formatted_variation()
860 woocommerce_scheduled_sales()
868 woocommerce_get_attachment_image_attributes()
876 woocommerce_prepare_attachment_for_js()
884 woocommerce_track_product_view()
892 woocommerce_compile_less_styles() has no replacement
902 woocommerce_calc_shipping_backwards_compatibility()
916 woocommerce_get_product_schema()
953 _wc_save_product_price()
1000 wc_get_customer_avatar_url()
1014 wc_get_core_supported_themes()
1027 wc_get_min_max_price_meta_query()
1054 wc_taxonomy_metadata_update_content_for_split_terms()
1071 update_woocommerce_term_meta()
1089 add_woocommerce_term_meta()
1107 delete_woocommerce_term_meta()
1124 get_woocommerce_term_meta()
1137 wc_register_default_log_handler()
1156 wc_get_log_file_path()

wc-template-functions.php

Line Element Reason
2564 woocommerce_product_subcategories() @todo Add a notice in a future version.
3944 wc_products_rss_feed()
3955 woocommerce_reset_loop()
3966 woocommerce_product_reviews_tab() Unused.

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

Line Element Reason
103 WC_Widget_Product_Tag_Cloud::_get_current_taxonomy()
116 WC_Widget_Product_Tag_Cloud::_topic_count_text()

MobileDetect.php

Line Element Reason
224 MobileDetect::VER since version 2.6.9

Options.php

Line Element Reason
19 Options since 6.2.0

DataSourcePoller.php

Line Element Reason
14 DataSourcePoller since 8.8.0
44 DataSourcePoller::get_specs_from_data_sources()
55 DataSourcePoller::read_specs_from_data_sources()
66 DataSourcePoller::delete_specs_transient()
79 DataSourcePoller::set_specs_transient()

FeaturePlugin.php

Line Element Reason
15 FeaturePlugin since 6.4.0
51 FeaturePlugin::init()

Features.php

Line Element Reason
254 Features::add_features_section() The WooCommerce Admin features are now handled by the WooCommerce features engine (see the FeaturesController class).
267 Features::add_features_settings() The WooCommerce Admin features are now handled by the WooCommerce features engine (see the FeaturesController class).

Init.php

Line Element Reason
56 Init::add_feature_toggle() The WooCommerce Admin features are now handled by the WooCommerce features engine (see the FeaturesController class).

Onboarding.php

Line Element Reason
15 Onboarding since 6.3.0, use WooCommerce\Internal\Admin\Onboarding.
42 Onboarding::get_allowed_industries()
53 Onboarding::get_allowed_product_types()
64 Onboarding::get_themes()
76 Onboarding::get_theme_data()
87 Onboarding::get_allowed_themes()
99 Onboarding::get_product_data()

Task.php

Line Element Reason
196 Task::get_level()
289 Task::is_snoozeable()
302 Task::get_snoozed_until()
320 Task::is_snoozed()
341 Task::snooze()
369 Task::undo_snooze()
450 Task::is_disabled()
33 Task::SNOOZED_OPTION

TaskList.php

Line Element Reason
318 TaskList::get_sections()
106 TaskList::$sections
115 TaskList::$task_class_id_map

TaskListSection.php

Line Element Reason
13 TaskListSection

SectionInterface.php

Line Element Reason
36 SectionInterface::add_section()

Loader.php

Line Element Reason
14 Loader since 6.3.0, use WooCommerce\Internal\Admin\Loader.
38 Loader::is_feature_enabled() since 5.0.0, use Features::is_enabled( $feature )
49 Loader::is_admin_or_embed_page()
59 Loader::is_admin_page()
69 Loader::is_embed_page()
82 Loader::should_use_minified_js_file() since 6.3.0, use WCAdminAssets::should_use_minified_js_file( $script_debug )

DeprecatedNotes.php

Line Element Reason
20 WC_Admin_Note since 4.8.0, use Note
63 WC_Admin_Notes since 4.8.0, use Notes
84 WC_Admin_Notes_Coupon_Page_Moved since 4.8.0, use CouponPageMoved
105 WC_Admin_Notes_Customize_Store_With_Blocks since 4.8.0, use CustomizeStoreWithBlocks
126 WC_Admin_Notes_Edit_Products_On_The_Move since 4.8.0, use EditProductsOnTheMove
147 WC_Admin_Notes_EU_VAT_Number since 4.8.0, use EUVATNumber
168 WC_Admin_Notes_Facebook_Marketing_Expert since 4.8.0, use FacebookMarketingExpert
189 WC_Admin_Notes_First_Product since 4.8.0, use FirstProduct
210 WC_Admin_Notes_Giving_Feedback_Notes since 4.8.0, use GivingFeedbackNotes
231 WC_Admin_Notes_Install_JP_And_WCS_Plugins since 4.8.0, use InstallJPAndWCSPlugins
252 WC_Admin_Notes_Launch_Checklist since 4.8.0, use LaunchChecklist
273 WC_Admin_Notes_Migrate_From_Shopify since 4.8.0, use MigrateFromShopify
294 WC_Admin_Notes_Mobile_App since 4.8.0, use MobileApp
315 WC_Admin_Notes_New_Sales_Record since 4.8.0, use NewSalesRecord
336 WC_Admin_Notes_Onboarding_Email_Marketing since 4.8.0, use OnboardingEmailMarketing
357 WC_Admin_Notes_Onboarding_Payments since 4.8.0, use OnboardingPayments
378 WC_Admin_Notes_Online_Clothing_Store since 4.8.0, use OnlineClothingStore
399 WC_Admin_Notes_Order_Milestones since 4.8.0, use OrderMilestones
420 WC_Admin_Notes_Performance_On_Mobile since 4.8.0, use PerformanceOnMobile
441 WC_Admin_Notes_Personalize_Store since 4.8.0, use PersonalizeStore
462 WC_Admin_Notes_Real_Time_Order_Alerts since 4.8.0, use RealTimeOrderAlerts
483 WC_Admin_Notes_Selling_Online_Courses since 4.8.0, use SellingOnlineCourses
504 WC_Admin_Notes_Tracking_Opt_In since 4.8.0, use TrackingOptIn
525 WC_Admin_Notes_Woo_Subscriptions_Notes since 4.8.0, use WooSubscriptionsNotes
546 WC_Admin_Notes_WooCommerce_Payments since 4.8.0, use WooCommercePayments
567 WC_Admin_Notes_WooCommerce_Subscriptions since 4.8.0, use WooCommerceSubscriptions

BaseLocationCountryRuleProcessor.php

Line Element Reason
19 BaseLocationCountryRuleProcessor

BaseLocationStateRuleProcessor.php

Line Element Reason
19 BaseLocationStateRuleProcessor

ComparisonOperation.php

Line Element Reason
17 ComparisonOperation

EvaluateAndGetStatus.php

Line Element Reason
17 EvaluateAndGetStatus

EvaluationLogger.php

Line Element Reason
13 EvaluationLogger

FailRuleProcessor.php

Line Element Reason
17 FailRuleProcessor

GetRuleProcessor.php

Line Element Reason
17 GetRuleProcessor

IsEcommerceRuleProcessor.php

Line Element Reason
21 IsEcommerceRuleProcessor

IsWooExpressRuleProcessor.php

Line Element Reason
20 IsWooExpressRuleProcessor

NoteStatusRuleProcessor.php

Line Element Reason
19 NoteStatusRuleProcessor

NotRuleProcessor.php

Line Element Reason
17 NotRuleProcessor

OnboardingProfileRuleProcessor.php

Line Element Reason
19 OnboardingProfileRuleProcessor

OptionRuleProcessor.php

Line Element Reason
17 OptionRuleProcessor

OrderCountRuleProcessor.php

Line Element Reason
17 OrderCountRuleProcessor

OrdersProvider.php

Line Element Reason
17 OrdersProvider

OrRuleProcessor.php

Line Element Reason
19 OrRuleProcessor

PassRuleProcessor.php

Line Element Reason
18 PassRuleProcessor

PluginsActivatedRuleProcessor.php

Line Element Reason
17 PluginsActivatedRuleProcessor

PluginVersionRuleProcessor.php

Line Element Reason
19 PluginVersionRuleProcessor

ProductCountRuleProcessor.php

Line Element Reason
19 ProductCountRuleProcessor

PublishAfterTimeRuleProcessor.php

Line Element Reason
17 PublishAfterTimeRuleProcessor

PublishBeforeTimeRuleProcessor.php

Line Element Reason
17 PublishBeforeTimeRuleProcessor

RuleEvaluator.php

Line Element Reason
19 RuleEvaluator

StoredStateRuleProcessor.php

Line Element Reason
19 StoredStateRuleProcessor

StoredStateSetupForProducts.php

Line Element Reason
17 StoredStateSetupForProducts

TotalPaymentsVolumeProcessor.php

Line Element Reason
17 TotalPaymentsVolumeProcessor

ArrayColumn.php

Line Element Reason
14 ArrayColumn

ArrayFlatten.php

Line Element Reason
14 ArrayFlatten

ArrayKeys.php

Line Element Reason
14 ArrayKeys

ArraySearch.php

Line Element Reason
14 ArraySearch

ArrayValues.php

Line Element Reason
14 ArrayValues

Count.php

Line Element Reason
14 Count

DotNotation.php

Line Element Reason
14 DotNotation

PrepareUrl.php

Line Element Reason
14 PrepareUrl

TransformerService.php

Line Element Reason
16 TransformerService

WCAdminActiveForProvider.php

Line Element Reason
17 WCAdminActiveForProvider

WCAdminActiveForRuleProcessor.php

Line Element Reason
19 WCAdminActiveForRuleProcessor

WooCommerceAdminUpdatedRuleProcessor.php

Line Element Reason
17 WooCommerceAdminUpdatedRuleProcessor

CheckoutFields.php

Line Element Reason
811 CheckoutFields::get_additional_fields_keys() Use get_order_fields_keys instead.
78 CheckoutFields::ADDITIONAL_FIELDS_PREFIX Use OTHER_FIELDS_PREFIX instead.

functions.php

Line Element Reason
44 __experimental_woocommerce_blocks_register_checkout_field() Use woocommerce_register_additional_checkout_field() instead.

BlocksWpQuery.php

Line Element Reason
14 BlocksWpQuery

TableMigrator.php

Line Element Reason
104 TableMigrator::process_migration_batch_for_ids() Use `fetch_sanitized_migration_data` and `process_migration_data` instead.
153 TableMigrator::process_migration_batch_for_ids_core() Use `fetch_sanitized_migration_data` and `process_migration_data` instead.