wc_deprecated_function( string $function, string $version, string $replacement = null )
Wrapper for deprecated functions so we can apply some extra logic.
Description #Description
Parameters #Parameters
- $function
-
(Required) Function used.
- $version
-
(Required) Version the message was added in.
- $replacement
-
(Optional) Replacement for the called function.
Default value: null
Source #Source
File: includes/wc-deprecated-functions.php
function wc_deprecated_function( $function, $version, $replacement = null ) { // @codingStandardsIgnoreStart if ( is_ajax() || WC()->is_rest_api_request() ) { do_action( 'deprecated_function_run', $function, $replacement, $version ); $log_string = "The {$function} function is deprecated since version {$version}."; $log_string .= $replacement ? " Replace with {$replacement}." : ''; error_log( $log_string ); } else { _deprecated_function( $function, $version, $replacement ); } // @codingStandardsIgnoreEnd }
Changelog #Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Related #Related
Uses #Uses
Uses | Description |
---|---|
woocommerce.php: WC() |
Returns the main instance of WC. |
includes/wc-conditional-functions.php: is_ajax() |
Is_ajax – Returns true when the page is loaded via ajax. |
Used By #Used By
Used By | Description |
---|---|
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::prepare_note_with_nonce() |
Parses query to create nonces when available. |
packages/woocommerce-admin/src/Notes/Note.php: Note::set_icon() |
Set note icon (Deprecated). |
packages/woocommerce-admin/src/API/Plugins.php: Plugins::install_plugin() |
Install the requested plugin. |
packages/woocommerce-admin/src/API/Notes.php: Notes::undoremove_items() |
Batch update a set of notes. |
includes/class-wc-geolite-integration.php: WC_Geolite_Integration::get_country_iso() |
Get country 2-letters ISO by IP address. |
includes/class-wc-cache-helper.php: WC_Cache_Helper::incr_cache_prefix() |
Increment group cache prefix (invalidates cache). |
includes/class-wc-order-item-meta.php: WC_Order_Item_Meta::__construct() |
Constructor. |
includes/admin/class-wc-admin-webhooks.php: WC_Admin_Webhooks::logs_output() |
Logs output. |
includes/admin/class-wc-admin-webhooks.php: WC_Admin_Webhooks::get_logs_navigation() |
Get the logs navigation. |
includes/admin/list-tables/class-wc-admin-list-table-products.php: WC_Admin_List_Table_Products::sku_search() |
Search by SKU or ID for products. |
includes/admin/class-wc-admin-settings.php: WC_Admin_Settings::save_fields() |
Save admin fields. |
includes/admin/class-wc-admin-post-types.php: WC_Admin_Post_Types::process_product_file_download_paths() |
Grant downloadable file access to any newly added files on any existing. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_styles() |
Enqueue styles. |
includes/admin/class-wc-admin-taxonomies.php: WC_Admin_Taxonomies::delete_term() |
When a term is deleted, delete its meta. |
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::theme_check_notice() |
Show the Theme Check notice. |
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::simplify_commerce_notice() |
Simplify Commerce is no longer in core. |
includes/class-wc-order-item-tax.php: WC_Order_Item_Tax::offsetSet() |
OffsetSet for ArrayAccess/Backwards compatibility. |
includes/class-wc-countries.php: WC_Countries::countries_using_vat() |
Gets an array of Non-EU countries that use VAT as the Local name for their taxes based on this list – https://en.wikipedia.org/wiki/Value-added_tax#Non-European_Union_countries |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_postcode() |
Legacy set postcode. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_city() |
Legacy set city. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_address() |
Legacy set address. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_address_2() |
Legacy set address. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_state() |
Legacy get state. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_postcode() |
Legacy get postcode. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_city() |
Legacy get city. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_country() |
Legacy set country. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_state() |
Legacy set state. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_default_data() |
Set default data for a customer. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::is_paying_customer() |
Is the user a paying customer? |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_address() |
Legacy get address. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_address_2() |
Legacy get address 2. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_country() |
Legacy get country. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_default_country() |
Get default country for a customer. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::get_default_state() |
Get default state for a customer. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_to_base() |
Set customer address to match shop base address. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::set_shipping_to_base() |
Set customer shipping address to base address. |
includes/legacy/class-wc-legacy-customer.php: WC_Legacy_Customer::calculated_shipping() |
Calculated shipping. |
includes/legacy/abstract-wc-legacy-payment-token.php: WC_Legacy_Payment_Token::update() |
Update a token. |
includes/legacy/abstract-wc-legacy-payment-token.php: WC_Legacy_Payment_Token::create() |
Create a token. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::sync_average_rating() |
Sync product rating. Can be called statically. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::sync_rating_count() |
Sync product rating count. Can be called statically. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_files() |
Same as get_downloads in CRUD. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::grouped_product_sync() | |
includes/legacy/abstract-wc-legacy-payment-token.php: WC_Legacy_Payment_Token::set_type() |
Sets the type of this payment token (CC, eCheck, or something else). |
includes/legacy/abstract-wc-legacy-payment-token.php: WC_Legacy_Payment_Token::read() |
Read a token by ID. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_formatted_variation_attributes() |
Get formatted variation data with WC < 2.4 back compat and proper formatting of text-based attribute names. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::variable_product_sync() |
Sync variable product prices with the children lowest/highest prices. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_matching_variation() |
Match a variation to a given set of attributes using a WP_Query. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::enable_dimensions_display() |
Returns whether or not we are showing dimensions on the product page. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_rating_html() |
Returns the product rating in html format. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_cross_sells() |
Returns the cross sell product ids. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::has_default_attributes() |
Check if variable product has default attributes set. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_variation_id() |
Get variation ID. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_variation_description() |
Get product variation description. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::has_all_attributes_set() |
Check if all variation’s attributes are set. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::parent_is_visible() |
Returns whether or not the variations parent is visible. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_total_stock() |
Get total stock – This is the stock of parent and children combined. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_categories() |
Returns the product categories. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_tags() |
Returns the product tags. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_post_data() |
Get the product’s post data. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_parent() |
Get the parent of the post. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_upsells() |
Returns the upsell product ids. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_price_html_from_to() |
Functions for getting parts of a price, in html, used by get_price_html. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::list_attributes() |
Lists a table of attributes for the product page. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_price_including_tax() |
Returns the price (including tax). Uses customer tax rates. Can work for a specific $qty for more accurate taxes. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_display_price() |
Returns the price including or excluding tax, based on the ‘woocommerce_tax_display_shop’ setting. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_price_excluding_tax() |
Returns the price (excluding tax) – ignores tax_class filters since the price may *include* tax and thus needs subtracting. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::adjust_price() |
Adjust a products price dynamically. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::increase_stock() |
Increase stock level of the product. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::check_stock_status() |
Check if the stock status needs changing. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_related() |
Get and return related products. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_related_terms() |
Retrieves related product terms. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::build_related_query() |
Builds the related posts query. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_child() |
Returns the child product. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_price_html_from_text() |
Functions for getting parts of a price, in html, used by get_price_html. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_variation_default_attributes() |
If set, get the default attributes for a variable product. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::get_gallery_attachment_ids() |
Returns the gallery attachment ids. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::set_stock() |
Set stock level of the product. |
includes/legacy/abstract-wc-legacy-product.php: WC_Abstract_Legacy_Product::reduce_stock() |
Reduce stock level of the product. |
includes/legacy/class-wc-legacy-api.php: WC_Legacy_API::register_rest_routes() |
Register REST API routes. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_discounts_after_tax() |
Gets the order discount amount – these are applied after tax. |
includes/legacy/class-wc-legacy-shipping-zone.php: WC_Legacy_Shipping_Zone::get_zone_id() |
Get zone ID |
includes/legacy/class-wc-legacy-shipping-zone.php: WC_Legacy_Shipping_Zone::read() |
Read a shipping zone by ID. |
includes/legacy/class-wc-legacy-shipping-zone.php: WC_Legacy_Shipping_Zone::update() |
Update a zone. |
includes/legacy/class-wc-legacy-shipping-zone.php: WC_Legacy_Shipping_Zone::create() |
Create a zone. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_cart_url() |
Gets the url to the cart page. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_checkout_url() |
Gets the url to the checkout page. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::ship_to_billing_address_only() |
Sees if we need a shipping address. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::coupons_enabled() |
Coupons enabled function. Filterable. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_discounts_before_tax() |
Gets the total (product) discount amount – these are applied before tax. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_order_discount_total() |
Get the total of all order discounts (after tax discounts). |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::apply_cart_discounts_after_tax() |
Function to apply cart discounts after tax. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::apply_product_discounts_after_tax() |
Function to apply product discounts after tax. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::remove_taxes() |
Remove taxes. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::init() |
Init. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::get_discounted_price() |
Function to apply discounts to a product and get the discounted price (before tax is applied). |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::email_order_items_table() |
Output items for display in html emails. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_order_currency() |
Get currency. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::__get() |
Magic getters. |
includes/legacy/class-wc-legacy-cart.php: WC_Legacy_Cart::__set() |
Map legacy variables to setters. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::expand_item_meta() |
Expand item meta into the $item array. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::init() |
Load the order object. Called from the constructor. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_order() |
Gets an order from the database. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::populate() |
Populates an order from the loaded post data. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::cancel_order() |
Cancel the order and restore the cart (before payment). |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::record_product_sales() |
Record sales. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::increase_coupon_usage_counts() |
Increase applied coupon counts. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::decrease_coupon_usage_counts() |
Decrease applied coupon counts. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::reduce_order_stock() |
Reduce stock levels for all line items in the order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::send_stock_notifications() |
Send the stock notifications. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::has_meta() |
has_meta function for order items. This is different to the WC_Data version and should be removed in future versions. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::display_item_meta() |
Display meta data belonging to an item. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::display_item_downloads() |
Display download links for an order item. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_download_url() |
Get the Download URL. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_item_downloads() |
Get the downloadable files for an item in this order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_item_meta() |
Get order item meta. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_item_meta_array() |
Get all item meta data in array format in the order it was saved. Does not group meta by key like get_item_meta(). |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_used_coupons() |
Get coupon codes only. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::update_coupon() |
Update coupon for order. Note this does not update order totals. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::update_shipping() |
Update shipping method for order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::update_fee() |
Update fee for order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::update_tax() |
Update tax line on order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::get_product_from_item() |
Get a product (either product or variation). |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::add_coupon() |
Add coupon code to the order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::add_tax() |
Add a tax row to the order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::add_shipping() |
Add a shipping row to the order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::add_fee() |
Add a fee to the order. |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::update_product() |
Update a line item for the order. |
includes/legacy/class-wc-legacy-coupon.php: WC_Legacy_Coupon::format_array() |
Format loaded data as array. |
includes/legacy/class-wc-legacy-coupon.php: WC_Legacy_Coupon::apply_before_tax() |
Check if coupon needs applying before tax. |
includes/legacy/class-wc-legacy-coupon.php: WC_Legacy_Coupon::enable_free_shipping() |
Check if a coupon enables free shipping. |
includes/legacy/class-wc-legacy-coupon.php: WC_Legacy_Coupon::exclude_sale_items() |
Check if a coupon excludes sale items. |
includes/legacy/class-wc-legacy-webhook.php: WC_Legacy_Webhook::get_post_data() |
Get the post data for the webhook. |
includes/legacy/class-wc-legacy-webhook.php: WC_Legacy_Webhook::update_status() |
Update the webhook status. |
includes/class-wc-cart.php: WC_Cart::get_remove_url() |
Gets the url to remove an item from the cart. |
includes/class-wc-cart.php: WC_Cart::get_undo_url() |
Gets the url to re-add an item into the cart. |
includes/class-wc-cart.php: WC_Cart::get_item_data() |
Gets and formats a list of cart item data + variations for display on the frontend. |
includes/class-wc-ajax.php: WC_AJAX::get_customer_details() |
Get customer details via ajax. |
includes/wc-template-functions.php: woocommerce_product_reviews_tab() |
Output the reviews tab content. |
includes/wc-template-functions.php: wc_products_rss_feed() |
Products RSS Feed. |
includes/wc-template-functions.php: wc_get_stock_html() |
Get HTML to show product stock. |
includes/class-wc-tax.php: WC_Tax::maybe_remove_tax_class_rates() |
When the woocommerce_tax_classes option is changed, remove any orphan rates. |
includes/data-stores/class-wc-customer-download-data-store.php: WC_Customer_Download_Data_Store::update_download_id() |
Update download ids if the hash changes. |
includes/data-stores/class-wc-order-data-store-cpt.php: WC_Order_Data_Store_CPT::get_orders() |
Get all orders matching the passed in args. |
includes/class-wc-post-data.php: WC_Post_Data::process_product_file_download_paths() |
Update changed downloads. |
includes/class-wc-form-handler.php: WC_Form_Handler::order_again() |
Place a previous order again. |
includes/class-wc-emails.php: WC_Emails::order_schema_markup() |
Adds Schema.org markup for order in JSON-LD format. |
includes/class-wc-emails.php: WC_Emails::email_footer_replace_site_title() |
Filter callback to replace {site_title} in email footer |
includes/class-wc-session-handler.php: WC_Session_Handler::nonce_user_logged_out() |
When a user is logged out, ensure they have a unique nonce by using the customer/session ID. |
includes/class-wc-geolocation.php: WC_Geolocation::init() |
Hook in geolocation functionality. |
includes/class-wc-geolocation.php: WC_Geolocation::disable_geolocation_on_legacy_php() |
Prevent geolocation via MaxMind when using legacy versions of php. |
includes/class-wc-geolocation.php: WC_Geolocation::maybe_update_database() |
Maybe trigger a DB update for the first time. |
includes/class-wc-geolocation.php: WC_Geolocation::get_local_database_path() |
Path to our local db. |
includes/class-wc-geolocation.php: WC_Geolocation::update_database() |
Update geoip database. |
includes/wc-cart-functions.php: wc_add_to_cart_message() |
Add to cart messages. |
includes/class-wc-order-item-shipping.php: WC_Order_Item_Shipping::offsetSet() |
Offset set: for ArrayAccess/Backwards compatibility. |
includes/widgets/class-wc-widget-product-tag-cloud.php: WC_Widget_Product_Tag_Cloud::_get_current_taxonomy() |
Return the taxonomy being displayed. |
includes/widgets/class-wc-widget-product-tag-cloud.php: WC_Widget_Product_Tag_Cloud::_topic_count_text() |
Returns topic count text. |
includes/class-wc-shipping.php: WC_Shipping::sort_shipping_methods() |
Deprecated |
includes/class-wc-download-handler.php: WC_Download_Handler::count_download() |
Count download. |
includes/class-wc-comments.php: WC_Comments::exclude_webhook_comments_from_feed_join() |
Exclude webhooks comments from feed. |
includes/class-wc-comments.php: WC_Comments::exclude_order_comments_from_feed_join() |
Exclude order comments from feed. |
includes/abstracts/abstract-wc-settings-api.php: WC_Settings_API::validate_settings_fields() |
Validate the data on the “Settings” form. |
includes/abstracts/abstract-wc-settings-api.php: WC_Settings_API::format_settings() |
Format settings if needed. |
includes/abstracts/abstract-wc-payment-gateway.php: WC_Payment_Gateway::credit_card_form() |
Core credit card form which gateways can use if needed. Deprecated – inherit WC_Payment_Gateway_CC instead. |
includes/class-wc-order-item-product.php: WC_Order_Item_Product::offsetSet() |
OffsetSet for ArrayAccess/Backwards compatibility. |
includes/wc-deprecated-functions.php: add_woocommerce_term_meta() |
WooCommerce Term Meta API. |
includes/wc-deprecated-functions.php: delete_woocommerce_term_meta() |
WooCommerce Term Meta API |
includes/wc-deprecated-functions.php: get_woocommerce_term_meta() |
WooCommerce Term Meta API |
includes/wc-deprecated-functions.php: wc_get_customer_avatar_url() |
Return customer avatar URL. |
includes/wc-deprecated-functions.php: wc_get_core_supported_themes() |
WooCommerce Core Supported Themes. |
includes/wc-deprecated-functions.php: wc_get_min_max_price_meta_query() |
Get min/max price meta query args. |
includes/wc-deprecated-functions.php: wc_taxonomy_metadata_update_content_for_split_terms() |
When a term is split, ensure meta data maintained. |
includes/wc-deprecated-functions.php: update_woocommerce_term_meta() |
WooCommerce Term Meta API. |
includes/wc-deprecated-functions.php: woocommerce_get_product_schema() | |
includes/wc-deprecated-functions.php: woocommerce_get_attachment_image_attributes() | |
includes/wc-deprecated-functions.php: woocommerce_prepare_attachment_for_js() | |
includes/wc-deprecated-functions.php: woocommerce_track_product_view() | |
includes/wc-deprecated-functions.php: woocommerce_compile_less_styles() | |
includes/wc-deprecated-functions.php: woocommerce_placeholder_img_src() | |
includes/wc-deprecated-functions.php: woocommerce_placeholder_img() | |
includes/wc-deprecated-functions.php: woocommerce_get_formatted_variation() | |
includes/wc-deprecated-functions.php: woocommerce_scheduled_sales() | |
includes/wc-deprecated-functions.php: woocommerce_get_product_terms() | |
includes/wc-deprecated-functions.php: woocommerce_product_post_type_link() | |
includes/wc-deprecated-functions.php: woocommerce_order_terms() | |
includes/wc-deprecated-functions.php: woocommerce_set_term_order() | |
includes/wc-deprecated-functions.php: woocommerce_terms_clauses() | |
includes/wc-deprecated-functions.php: _woocommerce_term_recount() | |
includes/wc-deprecated-functions.php: woocommerce_recount_after_stock_change() | |
includes/wc-deprecated-functions.php: woocommerce_change_term_counts() | |
includes/wc-deprecated-functions.php: woocommerce_get_product_ids_on_sale() | |
includes/wc-deprecated-functions.php: woocommerce_get_featured_product_ids() | |
includes/wc-deprecated-functions.php: wc_taxonomy_metadata_wpdbfix() | |
includes/wc-deprecated-functions.php: woocommerce_get_endpoint_url() | |
includes/wc-deprecated-functions.php: woocommerce_lostpassword_url() | |
includes/wc-deprecated-functions.php: woocommerce_customer_edit_account_url() | |
includes/wc-deprecated-functions.php: woocommerce_nav_menu_items() | |
includes/wc-deprecated-functions.php: woocommerce_nav_menu_item_classes() | |
includes/wc-deprecated-functions.php: woocommerce_list_pages() | |
includes/wc-deprecated-functions.php: woocommerce_product_dropdown_categories() | |
includes/wc-deprecated-functions.php: woocommerce_walk_category_dropdown_tree() | |
includes/wc-deprecated-functions.php: woocommerce_taxonomy_metadata_wpdbfix() | |
includes/wc-deprecated-functions.php: woocommerce_get_page_id() | |
includes/wc-deprecated-functions.php: woocommerce_update_order_item_meta() | |
includes/wc-deprecated-functions.php: woocommerce_add_order_item_meta() | |
includes/wc-deprecated-functions.php: woocommerce_delete_order_item_meta() | |
includes/wc-deprecated-functions.php: woocommerce_get_order_item_meta() | |
includes/wc-deprecated-functions.php: woocommerce_cancel_unpaid_orders() | |
includes/wc-deprecated-functions.php: woocommerce_processing_order_count() | |
includes/wc-deprecated-functions.php: woocommerce_downloadable_product_permissions() | |
includes/wc-deprecated-functions.php: woocommerce_add_order_item() | |
includes/wc-deprecated-functions.php: woocommerce_delete_order_item() | |
includes/wc-deprecated-functions.php: woocommerce_light_or_dark() | |
includes/wc-deprecated-functions.php: woocommerce_format_hex() | |
includes/wc-deprecated-functions.php: woocommerce_get_order_id_by_order_key() | |
includes/wc-deprecated-functions.php: woocommerce_downloadable_file_permission() | |
includes/wc-deprecated-functions.php: woocommerce_timezone_string() | |
includes/wc-deprecated-functions.php: woocommerce_rgb_from_hex() | |
includes/wc-deprecated-functions.php: woocommerce_hex_darker() | |
includes/wc-deprecated-functions.php: woocommerce_hex_lighter() | |
includes/wc-deprecated-functions.php: woocommerce_date_format() | |
includes/wc-deprecated-functions.php: woocommerce_time_format() | |
includes/wc-deprecated-functions.php: woocommerce_format_decimal() | |
includes/wc-deprecated-functions.php: woocommerce_clean() | |
includes/wc-deprecated-functions.php: woocommerce_array_overlay() | |
includes/wc-deprecated-functions.php: woocommerce_price() | |
includes/wc-deprecated-functions.php: woocommerce_let_to_num() | |
includes/wc-deprecated-functions.php: woocommerce_get_dimension() | |
includes/wc-deprecated-functions.php: woocommerce_get_weight() | |
includes/wc-deprecated-functions.php: woocommerce_trim_zeros() | |
includes/wc-deprecated-functions.php: woocommerce_round_tax_total() | |
includes/wc-deprecated-functions.php: woocommerce_get_filename_from_url() | |
includes/wc-deprecated-functions.php: woocommerce_create_new_customer() | |
includes/wc-deprecated-functions.php: woocommerce_set_customer_auth_cookie() | |
includes/wc-deprecated-functions.php: woocommerce_update_new_customer_past_orders() | |
includes/wc-deprecated-functions.php: woocommerce_paying_customer() | |
includes/wc-deprecated-functions.php: woocommerce_customer_bought_product() | |
includes/wc-deprecated-functions.php: woocommerce_customer_has_capability() | |
includes/wc-deprecated-functions.php: woocommerce_sanitize_taxonomy_name() | |
includes/wc-deprecated-functions.php: woocommerce_locate_template() | |
includes/wc-deprecated-functions.php: woocommerce_mail() | |
includes/wc-deprecated-functions.php: woocommerce_disable_admin_bar() | |
includes/wc-deprecated-functions.php: woocommerce_get_template_part() | |
includes/wc-deprecated-functions.php: woocommerce_get_template() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_shipping_html() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_coupon_html() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_order_total_html() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_fee_html() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_shipping_method_label() | |
includes/wc-deprecated-functions.php: woocommerce_add_to_cart_message() | |
includes/wc-deprecated-functions.php: woocommerce_clear_cart_after_payment() | |
includes/wc-deprecated-functions.php: woocommerce_cart_totals_subtotal_html() | |
includes/wc-deprecated-functions.php: woocommerce_load_persistent_cart() | |
includes/wc-deprecated-functions.php: woocommerce_format_total() |
Formal total costs – format to the number of decimal places for the base currency. |
includes/wc-deprecated-functions.php: woocommerce_get_formatted_product_name() |
Get product name with extra details such as SKU price and attributes. Used within admin. |
includes/wc-deprecated-functions.php: get_product() | |
includes/wc-deprecated-functions.php: woocommerce_protected_product_add_to_cart() | |
includes/wc-deprecated-functions.php: woocommerce_empty_cart() | |
includes/wc-deprecated-functions.php: woocommerce_admin_scripts() | |
includes/wc-deprecated-functions.php: woocommerce_create_page() | |
includes/wc-deprecated-functions.php: woocommerce_readfile_chunked() | |
includes/wc-deprecated-functions.php: woocommerce_datepicker_js() | |
includes/wc-deprecated-functions.php: woocommerce_show_messages() | |
includes/wc-deprecated-functions.php: woocommerce_weekend_area_js() | |
includes/wc-deprecated-functions.php: woocommerce_tooltip_js() | |
includes/class-wc-product-download.php: WC_Product_Download::get_previous_hash() |
Get previous_hash. |
includes/class-wc-product-download.php: WC_Product_Download::set_previous_hash() |
Set previous_hash. |
includes/class-wc-query.php: WC_Query::layered_nav_init() |
Layered nav init. |
includes/class-wc-query.php: WC_Query::get_products_in_view() |
Get an unpaginated list all product IDs (both filtered and unfiltered). Makes use of transients. |
includes/class-wc-query.php: WC_Query::layered_nav_query() |
Layered Nav post filter. |
includes/class-wc-query.php: WC_Query::search_post_excerpt() |
Search post excerpt. |
includes/class-wc-query.php: WC_Query::remove_posts_where() |
Remove the posts_where filter. |
includes/class-wc-order-refund.php: WC_Order_Refund::get_refund() |
Gets an refund from the database. |
includes/class-wc-order-refund.php: WC_Order_Refund::get_refund_amount() |
Get refund amount. |
includes/class-wc-order-refund.php: WC_Order_Refund::get_refund_reason() |
Get refund reason. |
includes/shortcodes/class-wc-shortcode-my-account.php: WC_Shortcode_My_Account::output() |
Output the shortcode. |
includes/class-wc-webhook.php: WC_Webhook::get_delivery_log() |
Get the delivery log specified by the ID. The delivery log includes: |
includes/class-wc-order-item-coupon.php: WC_Order_Item_Coupon::offsetGet() |
OffsetGet for ArrayAccess/Backwards compatibility. |
includes/class-wc-order-item-coupon.php: WC_Order_Item_Coupon::offsetSet() |
OffsetSet for ArrayAccess/Backwards compatibility. |
includes/class-wc-order-item-fee.php: WC_Order_Item_Fee::offsetSet() |
OffsetSet for ArrayAccess/Backwards compatibility. |
packages/woocommerce-admin/src/Features/Onboarding.php: Onboarding::has_woocommerce_support() |
Check if theme has declared support for WooCommerce. |
includes/rest-api/Package.php: Package::init() |
Init the package – load the REST API Server class. |
includes/rest-api/Package.php: Package::get_version() |
Return the version of the package. |
includes/rest-api/Package.php: Package::get_path() |
Return the path to the package. |