WC()
Returns the main instance of WC.
Description #Description
Return #Return
(WooCommerce)
Source #Source
File: woocommerce.php
function WC() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid return WooCommerce::instance(); }
Changelog #Changelog
Version | Description |
---|---|
2.1 | Introduced. |
Related #Related
Uses #Uses
Uses | Description |
---|---|
includes/class-woocommerce.php: WooCommerce::instance() |
Main WooCommerce Instance. |
Used By #Used By
Used By | Description |
---|---|
includes/admin/class-wc-admin-dashboard.php: WC_Admin_Dashboard::should_display_widget() |
Check to see if we should display the widget. |
includes/admin/class-wc-admin-addons.php: WC_Admin_Addons::output_wcpay_banner_block() |
Handles the outputting of the WooCommerce Pay banner block. |
includes/admin/class-wc-admin-dashboard-setup.php: WC_Admin_Dashboard_Setup::render() |
Render meta box output. |
includes/admin/class-wc-admin-dashboard-setup.php: WC_Admin_Dashboard_Setup::should_display_widget() |
Check to see if we should display the widget |
includes/admin/class-wc-admin-dashboard-setup.php: WC_Admin_Dashboard_Setup::populate_payment_tasks() |
Populate payment tasks’s visibility and completion |
includes/theme-support/class-wc-twenty-twenty-one.php: WC_Twenty_Twenty_One::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-twenty-one.php: WC_Twenty_Twenty_One::enqueue_admin_styles() |
Enqueue the wp-admin CSS overrides for this theme. |
includes/wc-webhook-functions.php: wc_webhook_execute_queue() |
Process the web hooks at the end of the request. |
packages/woocommerce-admin/src/Features/OnboardingTasks.php: OnboardingTasks::get_settings() |
Get task item data for settings filter. |
packages/woocommerce-admin/src/Notes/WooCommercePayments.php: WooCommercePayments::possibly_add_note() |
Maybe add a note on WooCommerce Payments for US based sites older than a week without the plugin installed. |
packages/woocommerce-admin/src/Notes/OnboardingPayments.php: OnboardingPayments::get_note() |
Get the note. |
packages/woocommerce-admin/src/Notes/EUVATNumber.php: EUVATNumber::get_note() |
Get the note. |
packages/woocommerce-admin/src/API/Plugins.php: Plugins::connect_square() |
Returns a URL that can be used to connect to Square. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::update_addresses_from_cart() |
Update address data from cart and/or customer session data. |
packages/woocommerce-blocks/src/StoreApi/Utilities/ProductQuery.php: ProductQuery::prepare_objects_query() |
Prepare query args to pass to WP_Query for a REST API request. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::validate_coupons() |
Validate coupons applied to the order and remove those that are not valid. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::validate_addresses() |
Validates customer address data based on the locale to ensure required fields are set. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::validate_address_fields() |
Check all required address fields are set and return errors if not. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::validate_coupon_email_restriction() |
Check email restrictions of a coupon against the order. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::update_line_items_from_cart() |
Create order line items. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::create_order_from_cart() |
Create order and set props based on global settings. |
packages/woocommerce-blocks/src/StoreApi/Utilities/OrderController.php: OrderController::update_order_from_cart() |
Update an order using data from the current cart. |
packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php: CartController::get_cart_instance() |
Get main instance of cart class. |
packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php: CartController::get_shipping_packages() |
Get shipping packages from the cart with calculated shipping rates. |
packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php: CartController::select_shipping_rate() |
Selects a shipping rate. |
packages/woocommerce-blocks/src/StoreApi/Utilities/CartController.php: CartController::get_remaining_stock_for_product() |
Gets remaining stock for a product. |
packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php: AbstractCartRoute::calculate_totals() |
Ensures the cart totals are calculated before an API response is generated. |
packages/woocommerce-blocks/src/StoreApi/Routes/AbstractCartRoute.php: AbstractCartRoute::maybe_release_stock() |
If there is a draft order, releases stock. |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::set_draft_order_id() |
Updates draft order data in the customer session. |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::is_valid_draft_order() |
Whether the passed argument is a draft order or an order that is pending/failed and the cart hasn’t changed. |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::update_customer_from_request() |
Updates the current customer session using data from the request (e.g. address data). |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::get_request_payment_method() |
Gets the chosen payment method from the request. |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::add_data_to_error_object() |
Adds additional data to the WP_Error object. |
packages/woocommerce-blocks/src/StoreApi/Routes/Checkout.php: Checkout::get_draft_order_id() |
Gets draft order data from the customer session. |
packages/woocommerce-blocks/src/StoreApi/Routes/CartUpdateCustomer.php: CartUpdateCustomer::get_route_post_response() |
Handle the request and return a valid response for this endpoint. |
packages/woocommerce-blocks/src/StoreApi/Schemas/CartSchema.php: CartSchema::get_item_response() |
Convert a woo cart into an object suitable for the response. |
packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php: CartItemSchema::get_remaining_stock() |
Returns the remaining stock for a product if it has stock. |
packages/woocommerce-blocks/src/StoreApi/Schemas/CartShippingRateSchema.php: CartShippingRateSchema::prepare_package_shipping_rates_response() |
Prepare an array of rates from a package for the response. |
packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractAddressSchema.php: AbstractAddressSchema::format_state() |
Format a state based on the country. If country has defined states, will return an upper case state code. |
packages/woocommerce-blocks/src/StoreApi/Schemas/AbstractAddressSchema.php: AbstractAddressSchema::validate_callback() |
Validate the given address object. |
packages/woocommerce-blocks/src/StoreApi/Schemas/CheckoutSchema.php: CheckoutSchema::get_properties() |
Checkout schema properties. |
packages/woocommerce-blocks/src/Domain/Services/CreateAccount.php: CreateAccount::should_create_customer_account() |
Check request options and store (shop) config to determine if a user account should be created as part of order processing. |
packages/woocommerce-blocks/src/BlockTypes/Checkout.php: Checkout::enqueue_data() |
Extra data passed through from server to client for block. |
packages/woocommerce-blocks/src/BlockTypes/Cart.php: Cart::enqueue_data() |
Extra data passed through from server to client for block. |
packages/woocommerce-blocks/src/Payments/PaymentContext.php: PaymentContext::get_payment_method_instance() |
Retrieve the payment method instance for the current set payment method. |
packages/woocommerce-blocks/src/Payments/Api.php: Api::add_payment_method_script_data() |
Add payment method data to Asset Registry. |
src/Internal/DownloadPermissionsAdjuster.php: DownloadPermissionsAdjuster::maybe_schedule_adjust_download_permissions() |
Schedule a download permissions adjustment for a product if necessary. |
src/Internal/ProductAttributesLookup/DataRegenerator.php: DataRegenerator::initialize_table_and_data() |
Create the lookup table and initialize the options that will be temporarily used while the regeneration is in progress. |
src/Internal/ProductAttributesLookup/DataRegenerator.php: DataRegenerator::enqueue_regeneration_step_run() |
Enqueue one regeneration step in action scheduler. |
src/Internal/ProductAttributesLookup/DataRegenerator.php: DataRegenerator::do_regeneration_step() |
Perform one regeneration step: grabs a chunk of products and creates the appropriate entries for them in the lookup table. |
src/Internal/ProductAttributesLookup/LookupDataStore.php: LookupDataStore::update_data_for_product() |
Insert or update the lookup data for a given product or variation. |
src/Internal/ProductAttributesLookup/LookupDataStore.php: LookupDataStore::get_term_ids_by_slug_cache() |
Get a cache of term ids by slug for a set of taxonomies, with this format: |
src/Internal/ProductAttributesLookup/LookupDataStore.php: LookupDataStore::get_variations_of() |
Get the variations of a given variable product. |
src/Internal/AssignDefaultCategory.php: AssignDefaultCategory::schedule_action() |
When a product category is deleted, we need to check if the product has no categories assigned. Then assign it a default category. We delay this with a scheduled action job to not block the response. |
includes/wc-update-functions.php: wc_update_240_shipping_methods() |
Update shipping methods for 2.4 |
includes/emails/class-wc-email.php: WC_Email::save_template() |
Save the email templates. |
includes/emails/class-wc-email.php: WC_Email::__construct() |
Constructor. |
includes/wc-formatting-functions.php: wc_price() |
Format the price with a currency symbol. |
includes/wc-notice-functions.php: wc_clear_notices() |
Unset all notices. |
includes/wc-notice-functions.php: wc_print_notices() |
Prints messages and errors which are stored in the session, then clears them. |
includes/wc-notice-functions.php: wc_get_notices() |
Returns all queued notices, optionally filtered by a notice type. |
includes/wc-notice-functions.php: wc_notice_count() |
Get the count of notices added, either for all notices (default) or for one. |
includes/wc-notice-functions.php: wc_has_notice() |
Check if a notice has already been added. |
includes/wc-notice-functions.php: wc_add_notice() |
Add and store a notice. |
includes/wc-notice-functions.php: wc_set_notices() |
Set all notices at once. |
includes/admin/settings/class-wc-settings-shipping.php: WC_Settings_Shipping::zone_methods_screen() |
Show method for a zone |
includes/admin/settings/class-wc-settings-emails.php: WC_Settings_Emails::output() |
Output the settings. |
includes/admin/settings/class-wc-settings-emails.php: WC_Settings_Emails::email_notification_setting() |
Output email notification settings. |
includes/admin/settings/class-wc-settings-shipping.php: WC_Settings_Shipping::get_sections() |
Get sections. |
includes/admin/settings/class-wc-settings-shipping.php: WC_Settings_Shipping::output() |
Output the settings. |
includes/admin/settings/class-wc-settings-payment-gateways.php: WC_Settings_Payment_Gateways::output() |
Output the settings. |
includes/admin/settings/class-wc-settings-payment-gateways.php: WC_Settings_Payment_Gateways::payment_gateways_setting() |
Output payment gateway settings. |
includes/admin/settings/class-wc-settings-tax.php: WC_Settings_Tax::output_tax_rates() |
Output tax rate tables. |
includes/admin/settings/class-wc-settings-integrations.php: WC_Settings_Integrations::get_sections() |
Get sections. |
includes/admin/settings/class-wc-settings-integrations.php: WC_Settings_Integrations::output() |
Output the settings. |
includes/admin/settings/class-wc-settings-integrations.php: WC_Settings_Integrations::__construct() |
Constructor. |
includes/admin/importers/class-wc-tax-rate-importer.php: WC_Tax_Rate_Importer::greet() |
Output information about the uploading process. |
includes/admin/notes/class-wc-notes-run-db-update.php: WC_Notes_Run_Db_Update::show_reminder() |
Prepare the correct content of the db update note to be displayed by WC Admin. |
includes/admin/class-wc-admin.php: WC_Admin::preview_emails() |
Preview email template. |
includes/admin/class-wc-admin.php: WC_Admin::admin_footer_text() |
Change the admin footer text on WooCommerce admin pages. |
includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php: WC_Marketplace_Suggestions::get_suggestions_api_data() |
Pull suggestion data from options. This is retrieved from a remote endpoint. |
includes/admin/class-wc-admin-dashboard.php: WC_Admin_Dashboard::network_orders() |
Network orders widget. |
includes/admin/marketplace-suggestions/class-wc-marketplace-updater.php: WC_Marketplace_Updater::retry() |
Used when an error has occured when fetching suggestions. |
includes/admin/class-wc-admin-dashboard.php: WC_Admin_Dashboard::status_widget() |
Show status widget. |
includes/admin/class-wc-admin-addons.php: WC_Admin_Addons::output() |
Handles output of the addons page in admin. |
includes/admin/class-wc-admin-addons.php: WC_Admin_Addons::show_extension() |
Should an extension be shown on the featured page. |
includes/admin/class-wc-admin-addons.php: WC_Admin_Addons::output_wcs_banner_block() |
Handles the outputting of the WooCommerce Services banner block. |
includes/admin/list-tables/class-wc-admin-list-table-orders.php: WC_Admin_List_Table_Orders::order_preview_get_order_details() |
Get order details to send to the ajax endpoint for previews. |
includes/admin/list-tables/class-wc-admin-list-table-orders.php: WC_Admin_List_Table_Orders::handle_bulk_actions() |
Handle bulk actions. |
includes/admin/class-wc-admin-exporters.php: WC_Admin_Exporters::admin_scripts() |
Enqueue scripts. |
includes/admin/class-wc-admin-settings.php: WC_Admin_Settings::output() |
Settings page. |
includes/admin/class-wc-admin-settings.php: WC_Admin_Settings::output_fields() |
Output admin fields. |
includes/admin/class-wc-admin-settings.php: WC_Admin_Settings::save() |
Save the settings. |
includes/admin/class-wc-admin-post-types.php: WC_Admin_Post_Types::quick_edit() |
Custom quick edit – form. |
includes/admin/class-wc-admin-post-types.php: WC_Admin_Post_Types::bulk_edit() |
Custom bulk edit – form. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_styles() |
Enqueue styles. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_scripts() |
Enqueue scripts. |
includes/admin/meta-boxes/class-wc-meta-box-order-actions.php: WC_Meta_Box_Order_Actions::save() |
Save meta box data. |
includes/admin/meta-boxes/class-wc-meta-box-order-data.php: WC_Meta_Box_Order_Data::init_address_fields() |
Init billing and shipping fields we display + save. |
includes/admin/meta-boxes/class-wc-meta-box-order-data.php: WC_Meta_Box_Order_Data::output() |
Output the metabox. |
includes/admin/meta-boxes/class-wc-meta-box-order-data.php: WC_Meta_Box_Order_Data::save() |
Save meta box data. |
includes/admin/helper/class-wc-helper.php: WC_Helper::admin_enqueue_scripts() |
Enqueue admin scripts and styles. |
includes/admin/class-wc-admin-importers.php: WC_Admin_Importers::admin_scripts() |
Register importer scripts. |
includes/admin/class-wc-admin-profile.php: WC_Admin_Profile::get_customer_meta_fields() |
Get Address Fields for the edit user pages. |
includes/admin/reports/class-wc-report-customer-list.php: WC_Report_Customer_List::column_default() |
Get column value. |
includes/admin/reports/class-wc-report-coupon-usage.php: WC_Report_Coupon_Usage::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-sales-by-date.php: WC_Report_Sales_By_Date::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-taxes-by-date.php: WC_Report_Taxes_By_Date::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-sales-by-category.php: WC_Report_Sales_By_Category::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-sales-by-category.php: WC_Report_Sales_By_Category::category_widget() |
Output category widget. |
includes/admin/reports/class-wc-report-taxes-by-code.php: WC_Report_Taxes_By_Code::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-sales-by-product.php: WC_Report_Sales_By_Product::output_report() |
Output the report. |
includes/admin/reports/class-wc-report-customers.php: WC_Report_Customers::output_report() |
Output the report. |
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::update_notice() |
If we need to update the database, include a message with the DB update button. |
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::template_file_check_notice() |
Show a notice highlighting bad template files. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::wc_setup_recommended() |
Recommended step |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::wc_setup_activate() |
Activate step. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::get_wizard_in_cart_payment_gateways() |
Simple array of “in cart” gateways to show in wizard. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::get_wizard_available_in_cart_payment_gateways() |
Array of all possible “in cart” gateways that can be offered. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::wc_setup_shipping() |
Shipping. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::wc_setup_new_onboarding() |
Display’s a prompt for users to try out the new improved WooCommerce onboarding experience in WooCommerce Admin. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::wc_setup_store_setup() |
Initial “store setup” step. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::setup_wizard_header() |
Setup Wizard Header. |
includes/admin/class-wc-admin-setup-wizard.php: WC_Admin_Setup_Wizard::should_show_automated_tax() |
The “automated tax” extra should only be shown if the current user can install plugins and the store is in a supported country. |
includes/admin/class-wc-admin-menus.php: WC_Admin_Menus::settings_page_init() |
Loads gateways and shipping methods into memory for use within settings. |
includes/class-wc-template-loader.php: WC_Template_Loader::unsupported_archive_layered_nav_compatibility() |
Add layered nav args to WP_Query args generated by the ‘products’ shortcode. |
includes/class-wc-template-loader.php: WC_Template_Loader::unsupported_theme_shop_content_filter() |
Filter the content and insert WooCommerce content on the shop page. |
includes/class-wc-template-loader.php: WC_Template_Loader::template_loader() |
Load a template. |
includes/class-wc-template-loader.php: WC_Template_Loader::get_template_loader_files() |
Get an array of filenames to search for a given template. |
includes/class-wc-template-loader.php: WC_Template_Loader::comments_template_loader() |
Load comments template. |
includes/class-wc-breadcrumb.php: WC_Breadcrumb::endpoint_trail() |
Endpoints. |
includes/wc-core-functions.php: wc_load_cart() |
Initialize and load the cart functionality. |
includes/wc-core-functions.php: wc_switch_to_site_locale() |
Switch WooCommerce to site language. |
includes/wc-core-functions.php: wc_restore_locale() |
Switch WooCommerce language to original. |
includes/wc-core-functions.php: wc_get_shipping_method_count() |
Gets number of shipping methods currently enabled. Used to identify if shipping is configured. |
includes/wc-core-functions.php: woocommerce_register_shipping_method() |
Register a shipping method. |
includes/wc-core-functions.php: wc_get_customer_default_location() |
Get the customer’s default location. |
includes/wc-core-functions.php: wc_mail() |
Send HTML emails from WooCommerce. |
includes/wc-core-functions.php: wc_locate_template() |
Locate a template and return the path for inclusion. |
includes/wc-core-functions.php: wc_get_template_part() |
Get template part (for templates like the shop-loop). |
includes/wc-conditional-functions.php: is_wc_endpoint_url() |
Is_wc_endpoint_url – Check if an endpoint is showing. |
includes/class-wc-shortcodes.php: WC_Shortcodes::cart() |
Cart page shortcode. |
includes/wccom-site/class-wc-wccom-site-installer.php: WC_WCCOM_Site_Installer::reset_state() |
Reset product install state. |
includes/wccom-site/class-wc-wccom-site-installer.php: WC_WCCOM_Site_Installer::schedule_install() |
Schedule installing given list of products. |
includes/class-wc-countries.php: WC_Countries::shipping_to_prefix() |
Gets the correct string for shipping – either ‘to the’ or ‘to’. |
includes/class-wc-countries.php: WC_Countries::load_country_states() |
Load the states. |
includes/class-wc-countries.php: WC_Countries::get_states() |
Get the states for a country. |
includes/class-wc-countries.php: WC_Countries::get_countries() |
Get all countries. |
includes/class-wc-countries.php: WC_Countries::get_continents() |
Get all continents. |
includes/class-wc-countries.php: WC_Countries::get_country_calling_code() |
Get calling code for a country code. |
includes/gateways/bacs/class-wc-gateway-bacs.php: WC_Gateway_BACS::process_payment() |
Process the payment and return the result. |
includes/gateways/bacs/class-wc-gateway-bacs.php: WC_Gateway_BACS::generate_account_details_html() |
Generate account details html. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php: WC_Gateway_Paypal_Response::payment_on_hold() |
Hold order and add note. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php: WC_Gateway_Paypal_API_Handler::do_capture() |
Capture an authorization. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php: WC_Gateway_Paypal_API_Handler::refund_transaction() |
Refund an order via PayPal. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php: WC_Gateway_Paypal_IPN_Handler::send_ipn_email_notification() |
Send a notification to the user handling orders. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php: WC_Gateway_Paypal_Response::payment_complete() |
Complete order, add transaction ID and note. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php: WC_Gateway_Paypal_IPN_Handler::validate_ipn() |
Check PayPal IPN validity. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php: WC_Gateway_Paypal_Request::get_paypal_state() |
Get the state to send to paypal. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php: WC_Gateway_Paypal_Request::get_phone_number_args() |
Get phone number args for paypal request. |
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php: WC_Gateway_Paypal_Request::__construct() |
Constructor. |
includes/gateways/paypal/class-wc-gateway-paypal.php: WC_Gateway_Paypal::admin_scripts() |
Load admin scripts. |
includes/gateways/paypal/class-wc-gateway-paypal.php: WC_Gateway_Paypal::get_icon_image() |
Get PayPal images for a country. |
includes/gateways/paypal/class-wc-gateway-paypal.php: WC_Gateway_Paypal::get_icon() |
Get gateway icon. |
includes/gateways/cod/class-wc-gateway-cod.php: WC_Gateway_COD::get_canonical_package_rate_ids() |
Converts the chosen rate IDs generated by Shipping Methods to a canonical ‘method_id:instance_id’ format. |
includes/gateways/cod/class-wc-gateway-cod.php: WC_Gateway_COD::process_payment() |
Process the payment and return the result. |
includes/gateways/cod/class-wc-gateway-cod.php: WC_Gateway_COD::is_available() |
Check If The Gateway Is Available For Use. |
includes/gateways/cod/class-wc-gateway-cod.php: WC_Gateway_COD::load_shipping_method_options() |
Loads all of the shipping method options for the enable_for_methods field. |
includes/gateways/cheque/class-wc-gateway-cheque.php: WC_Gateway_Cheque::process_payment() |
Process the payment and return the result. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::get_script_data() |
Return data for script handles. |
includes/class-wc-order.php: WC_Order::get_formatted_billing_address() |
Get a formatted billing address for the order. |
includes/class-wc-order.php: WC_Order::get_formatted_shipping_address() |
Get a formatted shipping address for the order. |
includes/class-wc-order.php: WC_Order::get_formatted_order_total() |
Gets order total – formatted for display. |
includes/class-wc-order.php: WC_Order::payment_complete() |
When a payment is complete this function is called. |
includes/legacy/api/v2/class-wc-api-orders.php: WC_API_Orders::create_order_refund() |
Create a new order refund for the given order |
includes/legacy/api/v2/class-wc-api-products.php: WC_API_Products::get_product_orders() |
Get the orders for a product |
includes/legacy/api/v2/class-wc-api-server.php: WC_API_Server::get_index() |
Get the site index. |
includes/legacy/api/v2/class-wc-api-customers.php: WC_API_Customers::get_customer_orders() |
Get the orders for a customer |
includes/legacy/api/v2/class-wc-api-orders.php: WC_API_Orders::get_order() |
Get the order for the given ID |
includes/legacy/api/v2/class-wc-api-authentication.php: WC_API_Authentication::check_api_key_permissions() |
Check that the API keys provided have the proper key-specific permissions to either read or write API resources |
includes/legacy/api/v2/class-wc-api-authentication.php: WC_API_Authentication::authenticate() |
Authenticate the request. The authentication method varies based on whether the request was made over SSL or not. |
includes/legacy/api/v2/class-wc-api-authentication.php: WC_API_Authentication::perform_ssl_authentication() |
SSL-encrypted requests are not subject to sniffing or man-in-the-middle attacks, so the request can be authenticated by simply looking up the user associated with the given consumer key and confirming the consumer secret provided is valid |
includes/legacy/api/v2/class-wc-api-authentication.php: WC_API_Authentication::perform_oauth_authentication() |
Perform OAuth 1.0a “one-legged” (http://oauthbible.com/#oauth-10a-one-legged) authentication for non-SSL requests |
includes/legacy/api/v2/class-wc-api-authentication.php: WC_API_Authentication::check_oauth_signature() |
Verify that the consumer-provided request signature matches our generated signature, this ensures the consumer has a valid key/secret |
includes/legacy/api/v2/class-wc-api-json-handler.php: WC_API_JSON_Handler::generate_response() |
Generate a JSON response given an array of data |
includes/legacy/api/v2/class-wc-api-reports.php: WC_API_Reports::setup_report() |
Setup the report object and parse any date filtering |
includes/legacy/abstract-wc-legacy-order.php: WC_Abstract_Legacy_Order::cancel_order() |
Cancel the order and restore the cart (before payment). |
includes/class-wc-cart.php: WC_Cart::get_cart_subtotal() |
Gets the sub total (after calculation). |
includes/class-wc-cart.php: WC_Cart::get_product_subtotal() |
Get the product row subtotal. |
includes/class-wc-cart.php: WC_Cart::remove_coupon() |
Remove a single coupon by code. |
includes/class-wc-cart.php: WC_Cart::show_shipping() |
Sees if the customer has entered enough data to calc the shipping yet. |
includes/class-wc-cart.php: WC_Cart::get_cart_shipping_total() |
Gets the shipping total (after calculation). |
includes/class-wc-cart.php: WC_Cart::apply_coupon() |
Applies a coupon code passed to the method. |
includes/class-wc-cart.php: WC_Cart::get_customer() |
Get cart’s owner. |
includes/class-wc-cart.php: WC_Cart::calculate_shipping() |
Uses the shipping class to calculate shipping then gets the totals when its finished. |
includes/class-wc-cart.php: WC_Cart::get_cart_item_tax_classes_for_shipping() |
Get all tax classes for shipping based on the items in the cart. |
includes/class-wc-cart.php: WC_Cart::get_cart_item_tax_classes() |
Get all tax classes for items in the cart. |
includes/class-wc-cart.php: WC_Cart::check_cart_item_stock() |
Looks through the cart to check each item is in stock. If not, add an error. |
includes/class-wc-ajax.php: WC_AJAX::toggle_gateway_enabled() |
Toggle payment gateway on or off via AJAX. |
includes/class-wc-ajax.php: WC_AJAX::add_order_shipping() |
Add order shipping cost via ajax. |
includes/class-wc-ajax.php: WC_AJAX::mark_order_status() |
Mark an order with a status. |
includes/class-wc-ajax.php: WC_AJAX::update_order_review() |
AJAX update order review on checkout. |
includes/class-wc-ajax.php: WC_AJAX::add_to_cart() |
AJAX add to cart. |
includes/class-wc-ajax.php: WC_AJAX::remove_from_cart() |
AJAX remove from cart. |
includes/class-wc-ajax.php: WC_AJAX::checkout() |
Process ajax checkout form. |
includes/class-wc-ajax.php: WC_AJAX::apply_coupon() |
AJAX apply coupon on checkout page. |
includes/class-wc-ajax.php: WC_AJAX::remove_coupon() |
AJAX remove coupon on cart and checkout page. |
includes/class-wc-ajax.php: WC_AJAX::update_shipping_method() |
AJAX update shipping method on cart page. |
includes/class-wc-ajax.php: WC_AJAX::get_cart_totals() |
AJAX receive updated cart_totals div. |
includes/class-wc-ajax.php: WC_AJAX::get_refreshed_fragments() |
Get a refreshed cart fragment, including the mini cart HTML. |
includes/class-wc-install.php: WC_Install::create_placeholder_image() |
Create a placeholder image in the media library. |
includes/class-wc-install.php: WC_Install::update_wc_version() |
Update WC version to current. |
includes/class-wc-install.php: WC_Install::update() |
Push all needed DB updates to the queue for processing. |
includes/class-wc-install.php: WC_Install::update_db_version() |
Update DB version to current. |
includes/class-wc-install.php: WC_Install::verify_base_tables() |
Check if all the base tables are present. |
includes/class-wc-install.php: WC_Install::setup_environment() |
Setup WC environment – post types, taxonomies, endpoints. |
includes/class-wc-install.php: WC_Install::wc_admin_db_update_notice() |
Add WC Admin based db update notice. |
includes/class-wc-install.php: WC_Install::run_update_callback_end() |
Triggered when a callback has ran. |
includes/class-wc-install.php: WC_Install::install() |
Install WC. |
includes/class-wc-install.php: WC_Install::check_version() |
Check WooCommerce version and run the updater is required. |
includes/wc-template-functions.php: wc_get_pay_buttons() |
Display pay buttons HTML. |
includes/wc-template-functions.php: woocommerce_form_field() |
Outputs a checkout/address form field. |
includes/wc-template-functions.php: woocommerce_checkout_coupon_form() |
Output the Coupon form for the checkout. |
includes/wc-template-functions.php: woocommerce_checkout_login_form() |
Output the WooCommerce Checkout Login Form. |
includes/wc-template-functions.php: woocommerce_order_review() |
Output the Order review table for the checkout. |
includes/wc-template-functions.php: woocommerce_checkout_payment() |
Output the Payment Methods on the checkout. |
includes/wc-template-functions.php: woocommerce_widget_shopping_cart_subtotal() |
Output to view cart subtotal. |
includes/wc-template-functions.php: woocommerce_shipping_calculator() |
Output the cart shipping calculator. |
includes/wc-template-functions.php: woocommerce_cross_sell_display() |
Output the cart cross-sells. |
includes/wc-template-functions.php: wc_body_class() |
Add body classes for WC pages. |
includes/wc-template-functions.php: wc_template_redirect() |
Handle redirects before content is output – hooked into template_redirect so is_page works. |
includes/class-wc-payment-gateways.php: WC_Payment_Gateways::set_current_gateway() |
Set the current, active gateway. |
includes/class-wc-cart-session.php: WC_Cart_Session::get_cart_from_session() |
Get the cart data from the PHP session and store it in class variables. |
includes/class-wc-cart-session.php: WC_Cart_Session::destroy_cart_session() |
Destroy cart session data. |
includes/class-wc-cart-session.php: WC_Cart_Session::set_session() |
Sets the php session data for the cart and coupons. |
includes/class-wc-cart-session.php: WC_Cart_Session::set_cart_cookies() |
Set cart hash cookie and items in cart if not already set. |
includes/class-wc-cart-session.php: WC_Cart_Session::populate_cart_from_order() |
Get a cart from an order, if user has permission. |
includes/theme-support/class-wc-twenty-twenty.php: WC_Twenty_Twenty::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-nineteen.php: WC_Twenty_Nineteen::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-seventeen.php: WC_Twenty_Seventeen::enqueue_styles() |
Enqueue CSS for this theme. |
includes/class-wc-tax.php: WC_Tax::get_shipping_tax_rates() |
Gets an array of matching shipping tax rates for a given class. |
includes/class-wc-tax.php: WC_Tax::get_rate_label() |
Return a given rates label. |
includes/class-wc-tax.php: WC_Tax::get_tax_location() |
Get the customer tax location based on their status and the current page. |
includes/class-wc-tax.php: WC_Tax::get_base_tax_rates() |
Get’s an array of matching rates for the shop’s base country. |
includes/data-stores/class-wc-shipping-zone-data-store.php: WC_Shipping_Zone_Data_Store::get_zone_id_from_package() |
Find a matching zone ID for a given package. |
includes/data-stores/class-wc-customer-data-store-session.php: WC_Customer_Data_Store_Session::delete() |
Deletes a customer from the database. |
includes/data-stores/class-wc-customer-data-store-session.php: WC_Customer_Data_Store_Session::save_to_session() |
Saves all customer data to the session. |
includes/data-stores/class-wc-customer-data-store-session.php: WC_Customer_Data_Store_Session::read() |
Read customer data from the session unless the user has logged in, in which case the stored ID will differ from the actual ID. |
includes/class-wc-customer.php: WC_Customer::get_taxable_address() |
Get taxable address. |
includes/class-wc-customer.php: WC_Customer::__construct() |
Load customer data based on how WC_Customer is called. |
includes/class-woocommerce.php: WooCommerce::build_dependencies_satisfied() |
Check if plugin assets are built and minified |
includes/class-wc-shipping-rate.php: WC_Shipping_Rate::get_shipping_tax() |
Get shipping tax. |
includes/class-wc-form-handler.php: WC_Form_Handler::add_to_cart_handler_simple() |
Handle adding simple products to the cart. |
includes/class-wc-form-handler.php: WC_Form_Handler::add_to_cart_handler_grouped() |
Handle adding grouped products to the cart. |
includes/class-wc-form-handler.php: WC_Form_Handler::add_to_cart_handler_variable() |
Handle adding variable products to the cart. |
includes/class-wc-form-handler.php: WC_Form_Handler::update_cart_action() |
Remove from cart/update. |
includes/class-wc-form-handler.php: WC_Form_Handler::cancel_order() |
Cancel a pending order. |
includes/class-wc-form-handler.php: WC_Form_Handler::checkout_action() |
Process the checkout form. |
includes/class-wc-form-handler.php: WC_Form_Handler::pay_action() |
Process the pay form. |
includes/class-wc-form-handler.php: WC_Form_Handler::add_payment_method_action() |
Process the add payment method form. |
includes/class-wc-form-handler.php: WC_Form_Handler::save_address() |
Save and and update a billing or shipping address if the form was submitted through the user account page. |
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::send_queued_transactional_email() |
Init the mailer instance and call the notifications for the current filter. |
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_cart_totals_shipping_method_label() |
Get a shipping methods full label including price. |
includes/wc-cart-functions.php: wc_get_chosen_shipping_method_ids() |
Gets chosen shipping method IDs from chosen_shipping_methods session, without instance IDs. |
includes/wc-cart-functions.php: wc_get_chosen_shipping_method_for_package() |
Get chosen method for package from session. |
includes/wc-cart-functions.php: wc_get_default_shipping_method_for_package() |
Choose the default method for a package. |
includes/wc-cart-functions.php: wc_shipping_methods_have_changed() |
See if the methods have changed since the last request. |
includes/wc-cart-functions.php: wc_cart_totals_coupon_html() |
Get coupon display HTML. |
includes/wc-cart-functions.php: wc_cart_totals_order_total_html() |
Get order total html including inc tax if needed. |
includes/wc-cart-functions.php: wc_cart_totals_fee_html() |
Get the fee value. |
includes/wc-cart-functions.php: wc_clear_cart_after_payment() |
Clear cart after payment. |
includes/wc-cart-functions.php: wc_cart_totals_subtotal_html() |
Get the subtotal. |
includes/wc-cart-functions.php: wc_cart_totals_shipping_html() |
Get shipping methods. |
includes/wc-cart-functions.php: wc_cart_totals_taxes_total_html() |
Get taxes total. |
includes/wc-cart-functions.php: wc_empty_cart() |
Clears the cart session when called. |
includes/wc-cart-functions.php: wc_load_persistent_cart() |
Load the persistent cart. |
includes/tracks/class-wc-tracks.php: WC_Tracks::get_blog_details() |
Gather blog related properties. |
includes/wc-product-functions.php: wc_update_product_lookup_tables_rating_count_batch() |
Populate a batch of rating count lookup table data for products. |
includes/wc-product-functions.php: wc_update_product_lookup_tables() |
Populate lookup table data for products. |
includes/wc-product-functions.php: wc_update_product_lookup_tables_is_running() |
See if the lookup table is being generated already. |
includes/wc-product-functions.php: wc_get_price_including_tax() |
For a given product, and optionally price/qty, work out the price with tax included, based on store settings. |
includes/wc-product-functions.php: wc_placeholder_img_src() |
Get the placeholder image URL either from media, or use the fallback image. |
includes/wc-product-functions.php: wc_get_product() |
Main function for returning products, uses the WC_Product_Factory class. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::__construct() |
Constructor. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::widget() |
Output widget. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::get_filtered_price() |
Get filtered min price for current products. |
includes/widgets/class-wc-widget-product-categories.php: WC_Widget_Product_Categories::widget() |
Output widget. |
includes/widgets/class-wc-widget-top-rated-products.php: WC_Widget_Top_Rated_Products::widget() |
Output widget. |
includes/widgets/class-wc-widget-rating-filter.php: WC_Widget_Rating_Filter::widget() |
Widget function. |
includes/class-wc-shipping.php: WC_Shipping::reset_shipping() |
Reset shipping. |
includes/class-wc-shipping.php: WC_Shipping::is_package_shippable() |
See if package is shippable. |
includes/class-wc-shipping.php: WC_Shipping::calculate_shipping_for_package() |
Calculate shipping rates for a package, |
includes/class-wc-shipping.php: WC_Shipping::__get() |
Magic getter. |
includes/wc-user-functions.php: wc_set_customer_auth_cookie() |
Login a customer (set auth cookie and set global user object). |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::add_order_item_totals_tax_rows() |
Add total row for taxes. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::get_subtotal_to_display() |
Gets subtotal – subtotal is shown before discounts, but with localised taxes. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::get_shipping_to_display() |
Gets shipping (formatted). |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::get_tax_location() |
Get tax location for this order. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::hold_applied_coupons() |
Check and records coupon usage tentatively so that counts validation is correct. Display an error if coupon usage limit has been reached. |
includes/abstracts/abstract-wc-payment-gateway.php: WC_Payment_Gateway::tokenization_script() |
Enqueues our tokenization script to handle some of the new form options. |
includes/abstracts/abstract-wc-payment-gateway.php: WC_Payment_Gateway::get_order_total() |
Get the order total in checkout and pay_for_order. |
includes/abstracts/abstract-wc-payment-gateway.php: WC_Payment_Gateway::is_available() |
Check if the gateway is available for use. |
includes/abstracts/abstract-wc-shipping-method.php: WC_Shipping_Method::get_taxes_per_item() |
Calc taxes per item being shipping in costs array. |
includes/abstracts/abstract-wc-shipping-method.php: WC_Shipping_Method::is_available() |
Is this method available? |
includes/abstracts/abstract-wc-shipping-method.php: WC_Shipping_Method::is_taxable() |
Whether or not we need to calculate tax on top of the shipping rate. |
includes/class-wc-api.php: WC_API::handle_api_requests() |
API request – Trigger any API requests. |
includes/class-wc-api.php: WC_API::get_rest_api_package_version() |
Get the version of the REST API package being ran. Since API package was merged into core, this now follows WC version. |
includes/class-wc-checkout.php: WC_Checkout::get_value() |
Gets the value either from POST, or from the customer object. Sets the default values in checkout fields. |
includes/class-wc-checkout.php: WC_Checkout::process_customer() |
Create a new customer account if needed. |
includes/class-wc-checkout.php: WC_Checkout::send_ajax_failure_response() |
If checkout failed during an AJAX call, send failure response. |
includes/class-wc-checkout.php: WC_Checkout::process_checkout() |
Process the checkout after the confirm order button is pressed. |
includes/class-wc-checkout.php: WC_Checkout::validate_checkout() |
Validates that the checkout has enough info to proceed. |
includes/class-wc-checkout.php: WC_Checkout::set_customer_address_fields() |
Set address field for customer. |
includes/class-wc-checkout.php: WC_Checkout::update_session() |
Update customer and session data from the posted checkout data. |
includes/class-wc-checkout.php: WC_Checkout::process_order_payment() |
Process an order that does require payment. |
includes/class-wc-checkout.php: WC_Checkout::maybe_skip_fieldset() |
See if a fieldset should be skipped. |
includes/class-wc-checkout.php: WC_Checkout::get_posted_data() |
Get posted data from the checkout form. |
includes/class-wc-checkout.php: WC_Checkout::validate_posted_data() |
Validates the posted checkout data based on field properties. |
includes/class-wc-checkout.php: WC_Checkout::set_data_from_cart() |
Copy line items, tax, totals data from cart to order. |
includes/class-wc-checkout.php: WC_Checkout::create_order() |
Create an order. Error codes: 520 – Cannot insert order into the database. |
includes/class-wc-checkout.php: WC_Checkout::get_checkout_fields() |
Get an array of checkout fields. |
includes/class-wc-checkout.php: WC_Checkout::__set() |
Sets the legacy public variables for backwards compatibility. |
includes/class-wc-checkout.php: WC_Checkout::__get() |
Gets the legacy public variables for backwards compatibility. |
includes/class-wc-tracker.php: WC_Tracker::get_active_shipping_methods() |
Get a list of all active shipping methods. |
includes/class-wc-tracker.php: WC_Tracker::get_all_woocommerce_options_values() |
Get all options starting with woocommerce_ prefix. |
includes/class-wc-tracker.php: WC_Tracker::get_all_template_overrides() |
Look for any template override and return filenames. |
includes/class-wc-tracker.php: WC_Tracker::get_active_payment_gateways() |
Get a list of all active payment gateways. |
includes/class-wc-shipping-zone.php: WC_Shipping_Zone::get_formatted_location() |
Return a text string representing what this zone is for. |
includes/wc-deprecated-functions.php: woocommerce_legacy_paypal_ipn() |
Handle IPN requests for the legacy paypal gateway by calling gateways manually if needed. |
includes/wc-deprecated-functions.php: wc_doing_it_wrong() |
Wrapper for _doing_it_wrong(). |
includes/wc-deprecated-functions.php: wc_deprecated_argument() |
Wrapper for deprecated arguments so we can apply some extra logic. |
includes/wc-deprecated-functions.php: wc_deprecated_function() |
Wrapper for deprecated functions so we can apply some extra logic. |
includes/wc-deprecated-functions.php: wc_deprecated_hook() |
Wrapper for deprecated hook so we can apply some extra logic. |
includes/wc-term-functions.php: wc_walk_category_dropdown_tree() |
Custom walker for Product Categories. |
includes/wc-order-functions.php: wc_get_payment_gateway_by_order() |
Get payment gateway class by order data. |
includes/wc-order-functions.php: wc_get_order() |
Main function for returning orders, uses the WC_Order_Factory class. |
includes/wc-page-functions.php: wc_page_endpoint_title() |
Replace a page title with the endpoint title. |
includes/wc-page-functions.php: wc_get_endpoint_url() |
Get endpoint URL. |
includes/class-wc-coupon.php: WC_Coupon::get_coupon_error() |
Map one of the WC_Coupon error codes to a message string. |
includes/class-wc-coupon.php: WC_Coupon::is_valid() |
Check if a coupon is valid for the cart. |
includes/class-wc-coupon.php: WC_Coupon::get_discount_amount() |
Get discount amount for a cart item. |
includes/wc-account-functions.php: wc_get_account_menu_items() |
Get My Account menu items. |
includes/shortcodes/class-wc-shortcode-products.php: WC_Shortcode_Products::get_query_results() |
Run the query and return an array of data, including queried ids and pagination information. |
includes/shortcodes/class-wc-shortcode-cart.php: WC_Shortcode_Cart::calculate_shipping() |
Calculate shipping for the cart. |
includes/shortcodes/class-wc-shortcode-cart.php: WC_Shortcode_Cart::output() |
Output the cart shortcode. |
includes/shortcodes/class-wc-shortcode-order-tracking.php: WC_Shortcode_Order_Tracking::output() |
Output the shortcode. |
includes/shortcodes/class-wc-shortcode-products.php: WC_Shortcode_Products::parse_query_args() |
Parse query args. |
includes/shortcodes/class-wc-shortcode-products.php: WC_Shortcode_Products::set_visibility_featured_query_args() |
Set visibility as featured. |
includes/shortcodes/class-wc-shortcode-products.php: WC_Shortcode_Products::set_visibility_query_args() |
Set visibility query args. |
includes/shortcodes/class-wc-shortcode-checkout.php: WC_Shortcode_Checkout::output() |
Output the shortcode. |
includes/shortcodes/class-wc-shortcode-checkout.php: WC_Shortcode_Checkout::order_pay() |
Show the pay page. |
includes/shortcodes/class-wc-shortcode-checkout.php: WC_Shortcode_Checkout::order_received() |
Show the thanks page. |
includes/shortcodes/class-wc-shortcode-checkout.php: WC_Shortcode_Checkout::checkout() |
Show the checkout. |
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php: WC_Shipping_Legacy_Local_Delivery::init_form_fields() |
Init form fields. |
includes/shortcodes/class-wc-shortcode-my-account.php: WC_Shortcode_My_Account::output() |
Output the shortcode. |
includes/shortcodes/class-wc-shortcode-my-account.php: WC_Shortcode_My_Account::edit_address() |
Edit address page. |
includes/shortcodes/class-wc-shortcode-my-account.php: WC_Shortcode_My_Account::retrieve_password() |
Handles sending password retrieval email to customer. |
includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php: WC_Shipping_Legacy_Local_Pickup::init_form_fields() |
Initialize form fields. |
includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php: WC_Shipping_Legacy_Local_Pickup::is_available() |
See if the method is available. |
includes/shipping/free-shipping/class-wc-shipping-free-shipping.php: WC_Shipping_Free_Shipping::is_available() |
See if free shipping is available based on the package and cart. |
includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php: WC_Shipping_Legacy_Flat_Rate::evaluate_cost() |
Evaluate a cost from a sum/string. |
includes/shipping/flat-rate/class-wc-shipping-flat-rate.php: WC_Shipping_Flat_Rate::calculate_shipping() |
Calculate the shipping costs. |
includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php: WC_Shipping_Legacy_Free_Shipping::init_form_fields() |
Initialise Gateway Settings Form Fields. |
includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php: WC_Shipping_Legacy_Free_Shipping::is_available() |
Check if package is available. |
includes/shipping/flat-rate/class-wc-shipping-flat-rate.php: WC_Shipping_Flat_Rate::evaluate_cost() |
Evaluate a cost from a sum/string. |
includes/class-wc-webhook.php: WC_Webhook::get_wp_api_payload() |
Get WP API integration payload. |
includes/class-wc-webhook.php: WC_Webhook::get_legacy_api_payload() |
Get Legacy API payload. |
packages/woocommerce-admin/src/Features/OnboardingTasks.php: OnboardingTasks::get_automated_tax_supported_countries() |
Get an array of countries that support automated tax. |
packages/woocommerce-admin/src/Features/Onboarding.php: Onboarding::component_settings() |
Add profiler items to component settings. |
packages/woocommerce-admin/src/Install.php: Install::update() |
Push all needed DB updates to the queue for processing. |
packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php: AssetDataRegistry::get_core_data() |
Exposes core data via the wcSettings global. This data is shared throughout the client. |
packages/woocommerce-blocks/src/Domain/Bootstrap.php: Bootstrap::init() |
Init the package – load the blocks library and define constants. |
packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php: AbstractProductGrid::parse_query_args() |
Parse query args. |
packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php: AbstractProductGrid::set_ordering_query_args() |
Parse query args. |
packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php: AbstractProductGrid::get_products() |
Run the query and return an array of product IDs |
includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php: WC_REST_Orders_Controller::save_object() |
Save an object data. |
includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php: WC_REST_Data_Countries_Controller::get_items() |
Return the list of states for all countries. |
includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php: WC_REST_Terms_Controller::get_taxonomy() |
Get taxonomy. |
includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php: WC_REST_Data_Countries_Controller::get_country() |
Get a list of countries and states. |
includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php: WC_REST_Data_Continents_Controller::get_continent() |
Return the list of countries and states for a given continent. |
includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php: WC_REST_Data_Continents_Controller::get_items() |
Return the list of states for all continents. |
includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php: WC_REST_Products_Controller::prepare_objects_query() |
Make extra product orderby features supported by WooCommerce available to the WC API. |
includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php: WC_REST_Setting_Options_Controller::get_group_settings() |
Get all settings in a group. |
includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php: WC_REST_Setting_Options_Controller::get_countries_and_states() |
Returns a list of countries and states for use in the base location setting. |
includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php: WC_REST_Product_Attributes_V1_Controller::get_taxonomy() |
Get attribute name. |
includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php: WC_REST_Report_Sales_V1_Controller::setup_report() |
Setup the report object and parse any date filtering. |
includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php: WC_REST_Setting_Options_V2_Controller::get_group_settings() |
Get all settings in a group. |
includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php: WC_REST_Setting_Options_V2_Controller::get_countries_and_states() |
Returns a list of countries and states for use in the base location setting. |
includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php: WC_REST_Payment_Gateways_V2_Controller::get_items() |
Get payment gateways. |
includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php: WC_REST_Payment_Gateways_V2_Controller::get_gateway() |
Get a gateway based on the current request object. |
includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php: WC_REST_System_Status_V2_Controller::get_theme_info() |
Get info on the current active theme, info on parent theme (if presnet) and a list of template overrides. |
includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php: WC_REST_System_Status_V2_Controller::get_environment_info_per_fields() |
Get array of environment information. Includes thing like software versions, and various server settings. |
includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php: WC_REST_Orders_V2_Controller::save_object() |
Save an object data. |
includes/rest-api/Package.php: Package::get_version() |
Return the version of the package. |