Search

Hooks: Action and Filter reference

Introduction ↑ Back to Top

Hooks are provided by WordPress and WooCommerce to allow your plugin or theme to ‘hook into’ the code; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

  1. Actions: Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur.
  2. Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen.

For a more in depth introduction to Hooks and Filters see: Introduction to hooks: actions and filters

Bellow is a full list of hooks and filters used in WooCommerce, as well as the files in which they are called.

Template Hooks ↑ Back to Top

Actions

Hook File(s)
get_product_search_form wc-template-functions.php
‘woocommerce_’ . $product->product_type . ‘_add_to_cart’ wc-template-functions.php
woocommerce_after_cart cart.php, class-wc-cart.php, cart-totals.php
woocommerce_after_cart_contents cart.php
woocommerce_after_cart_table cart.php
woocommerce_after_cart_totals cart-totals.php
woocommerce_after_checkout_billing_form form-billing.php
woocommerce_after_checkout_form form-checkout.php
woocommerce_after_checkout_registration_form form-billing.php
woocommerce_after_checkout_shipping_form form-shipping.php
woocommerce_after_customer_login_form form-login.php
woocommerce_after_main_content archive-product.php, single-product.php, wc-template-hooks.php
woocommerce_after_mini_cart mini-cart.php
woocommerce_after_my_account my-account.php
woocommerce_after_order_notes form-shipping.php
woocommerce_after_shipping_calculator shipping-calculator.php
woocommerce_after_shop_loop archive-product.php, wc-template-functions.php, wc-template-hooks.php
woocommerce_after_shop_loop_item wc-template-hooks.php, content-product.php
woocommerce_after_shop_loop_item_title content-product.php, wc-template-hooks.php
woocommerce_after_single_product content-single-product.php
woocommerce_after_single_product_summary content-single-product.php, wc-template-hooks.php
woocommerce_after_subcategory content-product_cat.php
woocommerce_after_subcategory_title content-product_cat.php
woocommerce_archive_description archive-product.php, wc-template-functions.php, wc-template-hooks.php
woocommerce_available_download_end my-downloads.php
woocommerce_available_download_start my-downloads.php
woocommerce_before_cart cart.php
woocommerce_before_cart_contents cart.php
woocommerce_before_cart_table cart.php
woocommerce_before_cart_totals cart-totals.php
woocommerce_before_checkout_billing_form form-billing.php
woocommerce_before_checkout_form form-checkout.php, wc-template-hooks.php
woocommerce_before_checkout_registration_form form-billing.php
woocommerce_before_checkout_shipping_form form-shipping.php
woocommerce_before_customer_login_form form-login.php
woocommerce_before_main_content archive-product.php, single-product.php, wc-template-hooks.php
woocommerce_before_mini_cart mini-cart.php
woocommerce_before_my_account my-account.php
woocommerce_before_order_notes form-shipping.php
woocommerce_before_shipping_calculator shipping-calculator.php
woocommerce_before_shop_loop archive-product.php, notice-functions.php, wc-notice-functions.php, wc-template-functions.php, wc-template-hooks.php
woocommerce_before_shop_loop_item content-product.php
woocommerce_before_shop_loop_item_title content-product.php, wc-template-hooks.php
woocommerce_before_single_product content-single-product.php, wc-notice-functions.php, wc-template-hooks.php, notice-functions.php
woocommerce_before_single_product_summary content-single-product.php, wc-template-hooks.php
woocommerce_before_subcategory content-product_cat.php
woocommerce_before_subcategory_title content-product_cat.php, wc-template-hooks.php
woocommerce_cart_collaterals cart.php, wc-template-hooks.php
woocommerce_cart_contents cart.php
woocommerce_cart_coupon cart.php
woocommerce_cart_has_errors cart-errors.php
woocommerce_cart_is_empty cart-empty.php
woocommerce_cart_totals_after_order_total cart-totals.php
woocommerce_cart_totals_after_shipping cart-totals.php
woocommerce_cart_totals_before_order_total cart-totals.php
woocommerce_cart_totals_before_shipping cart-totals.php
woocommerce_checkout_after_customer_details form-checkout.php
woocommerce_checkout_before_customer_details form-checkout.php
woocommerce_checkout_billing form-checkout.php, class-wc-checkout.php
woocommerce_checkout_order_review form-checkout.php, class-wc-ajax.php, wc-template-hooks.php
woocommerce_checkout_shipping form-checkout.php
woocommerce_email_after_order_table admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-processing-order.php, admin-new-order.php
woocommerce_email_before_order_table admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-processing-order.php, class-wc-gateway-bacs.php, class-wc-gateway-cheque.php, class-wc-gateway-cod.php, admin-new-order.php
woocommerce_email_footer admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-processing-order.php, customer-reset-password.php, class-wc-emails.php
woocommerce_email_header admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-processing-order.php, customer-reset-password.php, class-wc-emails.php
woocommerce_email_order_meta admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-processing-order.php, class-wc-emails.php
woocommerce_order_details_after_order_table order-details.php, wc-template-hooks.php
woocommerce_order_items_table order-details.php
woocommerce_proceed_to_checkout cart.php
woocommerce_product_meta_end meta.php
woocommerce_product_meta_start meta.php
woocommerce_product_thumbnails product-image.php, wc-template-hooks.php
woocommerce_review_order_after_cart_contents review-order.php
woocommerce_review_order_after_order_total review-order.php
woocommerce_review_order_after_shipping review-order.php
woocommerce_review_order_after_submit review-order.php
woocommerce_review_order_before_cart_contents review-order.php
woocommerce_review_order_before_order_total review-order.php
woocommerce_review_order_before_shipping review-order.php
woocommerce_review_order_before_submit review-order.php
woocommerce_share share.php
woocommerce_sidebar archive-product.php, single-product.php, wc-template-hooks.php
woocommerce_single_product_summary content-single-product.php, wc-template-hooks.php
woocommerce_thankyou thankyou.php, class-wc-session-handler.php, wc-template-hooks.php
‘woocommerce_thankyou_’ . $order->payment_method thankyou.php
woocommerce_view_order tracking.php, wc-template-hooks.php, view-order.php
woocommerce_widget_shopping_cart_before_buttons mini-cart.php

Filters

Hook File(s)
get_product_search_form wc-template-functions.php, class-wc-widget-product-search.php
single_product_large_thumbnail_size product-image.php, class-wc-product-variable.php
single_product_small_thumbnail_size product-thumbnails.php, wc-template-functions.php
woocommerce_add_to_cart_handler class-wc-form-handler.php
woocommerce_attribute product-attributes.php
woocommerce_apply_base_tax_for_local_pickup class-wc-customer.php
woocommerce_available_download_count my-downloads.php
woocommerce_available_download_link my-downloads.php
woocommerce_breadcrumb_home_url breadcrumb.php
woocommerce_cart_item_price cart.php, mini-cart.php
woocommerce_cart_item_quantity cart.php
woocommerce_cart_item_remove_link cart.php
woocommerce_cart_item_subtotal cart.php, review-order.php
woocommerce_cart_shipping_method_full_label wc-cart-functions.php
woocommerce_cart_item_class cart.php, review-order.php
woocommerce_checkout_coupon_message form-coupon.php
woocommerce_checkout_login_message form-login.php
woocommerce_checkout_must_be_logged_in_message form-checkout.php
woocommerce_cross_sells_columns cross-sells.php
woocommerce_default_catalog_orderby class-wc-settings-products.php, class-wc-query.php, wc-template-functions.php
woocommerce_demo_store class-wc-settings-general.php, wc-conditional-functions.php, wc-template-functions.php, wc-template-hooks.php
woocommerce_email_footer_text email-footer.php, class-wc-settings-emails.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-processing-order.php, customer-reset-password.php
‘woocommerce_form_field_’ . $args[‘type’] wc-template-functions.php
woocommerce_get_checkout_url form-checkout.php, class-wc-cart.php
woocommerce_cart_item_product_id cart.php, mini-cart.php
woocommerce_cart_item_thumbnail cart.php, mini-cart.php
woocommerce_cart_item_name cart.php, mini-cart.php, review-order.php
woocommerce_loop_add_to_cart_link add-to-cart.php
woocommerce_lost_password_message form-lost-password.php
woocommerce_my_account_my_address_description my-address.php
woocommerce_my_account_my_address_title my-address.php
woocommerce_my_account_my_downloads_title my-downloads.php
woocommerce_my_account_my_orders_actions my-orders.php
woocommerce_my_account_my_orders_title my-orders.php
woocommerce_order_button_html review-order.php
woocommerce_order_button_text review-order.php
woocommerce_order_tracking_status tracking.php
woocommerce_page_title wc-template-functions.php, archive-product.php
woocommerce_product_description_heading description.php
woocommerce_product_review_comment_form_args single-product-reviews.php
woocommerce_product_subcategories_args wc-template-functions.php
woocommerce_product_tabs tabs.php, wc-template-hooks.php
woocommerce_product_thumbnails_columns product-thumbnails.php
woocommerce_quantity_input_args wc-template-functions.php
woocommerce_quantity_input_max wc-template-functions.php, simple.php
woocommerce_quantity_input_min wc-template-functions.php, simple.php
woocommerce_quantity_input_step wc-template-functions.php, html-order-item.php
woocommerce_reset_password_message form-lost-password.php
woocommerce_sale_flash sale-flash.php
woocommerce_single_product_image_html product-image.php
woocommerce_single_product_image_thumbnail_html product-thumbnails.php
woocommerce_subcategory_count_html content-product_cat.php

Shortcode Hooks ↑ Back to Top

Actions

Hook File(s)
after_woocommerce_pay class-wc-shortcode-pay.php
before_woocommerce_pay class-wc-shortcode-pay.php
woocommerce_calculated_shipping class-wc-shortcode-cart.php
woocommerce_check_cart_items class-wc-cart.php, class-wc-checkout.php, class-wc-shortcode-cart.php, class-wc-shortcode-checkout.php
woocommerce_customer_reset_password class-wc-form-handler.php
‘woocommerce_receipt_’ . $order->payment_method class-wc-shortcode-checkout.php
woocommerce_reset_password_notification class-wc-email-customer-reset-password.php, class-wc-shortcode-my-account.php
woocommerce_track_order class-wc-shortcode-order-tracking.php
woocommerce_view_order wc-template-hooks.php, view-order.php

Filters

Hook File(s)
woocommerce_shipping_calculator_enable_city class-wc-shortcode-cart.php, shipping-calculator.php
woocommerce_shipping_calculator_enable_postcode class-wc-shortcode-cart.php, shipping-calculator.php
woocommerce_shortcode_order_tracking_order_id class-wc-shortcode-order-tracking.php
woocommerce_thankyou_order_id class-wc-shortcode-checkout.php
woocommerce_thankyou_order_key class-wc-shortcode-checkout.php
woocommerce_valid_order_statuses_for_payment abstract-wc-order.php, class-wc-form-handler.php, class-wc-shortcode-checkout.php, my-orders.php

Widget Hooks ↑ Back to Top

Filters

Hook File(s)
woocommerce_layered_nav_link class-wc-widget-layered-nav.php
woocommerce_product_categories_widget_args class-wc-widget-product-categories.php
woocommerce_product_tag_cloud_widget_args class-wc-widget-product-tag-cloud.php

Class Hooks ↑ Back to Top

Actions

Hook File(s)
after_woocommerce_pay class-wc-shortcode-checkout.php
before_woocommerce_pay class-wc-shortcode-checkout.php
woocommerce_add_order_item_meta class-wc-checkout.php
woocommerce_add_to_cart class-wc-cart.php
woocommerce_after_cart_item_quantity_update class-wc-cart.php
woocommerce_after_checkout_validation class-wc-checkout.php, class-wc-cart.php
‘woocommerce_api_’ . $api class-wc-api.php
woocommerce_applied_coupon class-wc-cart.php
woocommerce_before_calculate_totals class-wc-cart.php
woocommerce_before_cart_item_quantity_zero class-wc-cart.php
woocommerce_before_checkout_process class-wc-checkout.php
woocommerce_calculate_totals class-wc-cart.php
woocommerce_calculated_shipping class-wc-shortcode-cart.php
‘woocommerce_cart_discount_after_tax_’ . $coupon->type class-wc-cart.php
woocommerce_cart_emptied class-wc-cart.php
woocommerce_cart_loaded_from_session class-wc-cart.php
woocommerce_cart_updated class-wc-cart.php
woocommerce_check_cart_items class-wc-cart.php, class-wc-checkout.php, class-wc-shortcode-cart.php, class-wc-shortcode-checkout.php
woocommerce_checkout_init class-wc-checkout.php
woocommerce_checkout_order_processed class-wc-checkout.php
woocommerce_checkout_process class-wc-checkout.php
woocommerce_checkout_update_order_meta class-wc-checkout.php
woocommerce_checkout_update_user_meta class-wc-checkout.php
woocommerce_coupon_loaded class-wc-coupon.php
woocommerce_coupon_is_valid_for_product class-wc-coupon.php
woocommerce_created_customer woocommerce.php, class-wc-webhook.php:
woocommerce_customer_reset_password lass-wc-form-handler.php
woocommerce_email class-wc-emails.php
woocommerce_email_footer class-wc-emails.php
woocommerce_email_header class-wc-emails.php
woocommerce_integrations_init class-wc-integrations.php
woocommerce_load_shipping_methods class-wc-shipping.php
woocommerce_low_stock woocommerce.php, abstract-wc-order.php
woocommerce_new_customer_note abstract-wc-order.php, class-wc-email-customer-note.php, woocommerce.php
woocommerce_new_order class-wc-checkout.php
woocommerce_no_stock woocommerce.php, abstract-wc-order.php
woocommerce_order_status_.$new_status->slug abstract-wc-order.php
woocommerce_order_status_.$this->status._to_.$new_status->slug abstract-wc-order.php
woocommerce_order_status_changed abstract-wc-order.php
woocommerce_payment_complete abstract-wc-order.php
‘woocommerce_product_discount_after_tax_’ . $coupon->type class-wc-cart.php
woocommerce_product_on_backorder abstract-wc-order.php, woocommerce.php
woocommerce_product_query class-wc-query.php
woocommerce_product_set_stock_status abstract-wc-product.php, class-wc-post-data.php, class-wc-product-variable.php, wc-term-functions.php
woocommerce_receipt_’ . $order->payment_method class-wc-shortcode-checkout.php
woocommerce_reduce_order_stock abstract-wc-order.php, class-wc-ajax.php
woocommerce_register_post wc-user-functions.php
woocommerce_reset_password_notification class-wc-email-customer-reset-password.php, class-wc-shortcode-my-account.php
woocommerce_resume_order class-wc-checkout.php
woocommerce_shipping_init class-wc-shipping.php
woocommerce_shipping_method_chosen class-wc-shipping.php
woocommerce_track_order class-wc-shortcode-order-tracking.php
woocommerce_view_order wc-template-hooks.php, view-order.php, tracking.php

Filters

Hook File(s)
list_product_cats class-product-cat-dropdown-walker.php
single_product_large_thumbnail_size class-wc-product-variable.php, product-image.php
wc_session_expiration class-wc-session-handler.php
wc_session_expiring class-wc-session-handler.php
woocommerce_add_cart_item_data class-wc-cart.php
woocommerce_apply_individual_use_coupon class-wc-cart.php
woocommerce_available_payment_gateways class-wc-payment-gateways.php
woocommerce_package_rates class-wc-shipping.php
woocommerce_backordered_item_meta_name abstract-wc-order.php
woocommerce_calc_tax class-wc-tax.php
woocommerce_calculated_total class-wc-cart.php
woocommerce_cart_contents_count class-wc-cart.php
woocommerce_cart_contents_total class-wc-cart.php
woocommerce_cart_discounts_after_tax class-wc-cart.php
woocommerce_cart_discounts_before_tax class-wc-cart.php
woocommerce_cart_formatted_taxes class-wc-cart.php
woocommerce_cart_get_taxes class-wc-cart.php
woocommerce_cart_needs_payment class-wc-cart.php
woocommerce_cart_needs_shipping class-wc-cart.php
woocommerce_cart_product_subtotal class-wc-cart.php
woocommerce_cart_ready_to_calc_shipping class-wc-cart.php
woocommerce_cart_shipping_packages class-wc-cart.php
woocommerce_cart_subtotal class-wc-cart.php
woocommerce_cart_tax_totals class-wc-cart.php
woocommerce_cart_total class-wc-cart.php
woocommerce_cart_total_discount class-wc-cart.php
woocommerce_cart_total_ex_tax class-wc-cart.php
woocommerce_checkout_fields class-wc-checkout.php
woocommerce_countries_allowed_countries class-wc-countries.php
woocommerce_countries_allowed_country_states class-wc-countries.php
woocommerce_countries_estimated_for_prefix class-wc-countries.php
woocommerce_countries_ex_tax_or_vat class-wc-countries.php
woocommerce_countries_inc_tax_or_vat class-wc-countries.php
woocommerce_countries_shipping_to_prefix class-wc-countries.php
woocommerce_countries_tax_or_vat class-wc-countries.php
woocommerce_coupon_code class-wc-cart.php, class-wc-coupon.php, class-wc-meta-box-coupon-data.php, class-wc-api-coupons.php, wc-core-functions.php
woocommerce_coupon_code_query class-wc-coupon.php
woocommerce_coupon_error class-wc-coupon.php
woocommerce_coupon_is_valid class-wc-coupon.php
woocommerce_coupon_message class-wc-coupon.php
woocommerce_coupons_enabled class-wc-cart.php
woocommerce_create_order class-wc-checkout.php
woocommerce_customer_default_location class-wc-customer.php
woocommerce_customer_get_downloadable_products class-wc-customer.php
woocommerce_customer_taxable_address class-wc-customer.php
woocommerce_default_address_fields class-wc-countries.php
woocommerce_default_catalog_orderby class-wc-query.php, class-wc-settings-products.php, wc-template-functions.php
woocommerce_email_attachments class-wc-emails.php, abstract-wc-email.php
woocommerce_email_classes class-wc-emails.php
‘woocommerce_email_enabled_’ . $this->id abstract-wc-email.php
woocommerce_email_headers class-wc-emails.php, class-wc-emails.php, class-wc-emails.php, abstract-wc-email.php
‘woocommerce_email_heading_’ . $this->id abstract-wc-email.php
woocommerce_email_heading_customer_completed_order class-wc-email-customer-completed-order.php
woocommerce_email_heading_customer_invoice class-wc-email-customer-invoice.php
woocommerce_email_heading_customer_invoice_paid class-wc-email-customer-invoice.php
woocommerce_email_order_items_table class-wc-order.php
woocommerce_email_order_meta_keys class-wc-emails.php
‘woocommerce_email_recipient_’ . $this->id abstract-wc-email.php
woocommerce_email_subject_’ . $this->id abstract-wc-email.php
woocommerce_email_subject_backorder class-wc-emails.php
woocommerce_email_subject_customer_completed_order class-wc-email-customer-completed-order.php
woocommerce_email_subject_customer_invoice class-wc-email-customer-invoice.php
woocommerce_email_subject_customer_invoice_paid class-wc-email-customer-invoice.php
woocommerce_email_subject_low_stock class-wc-emails.php
woocommerce_email_subject_no_stock class-wc-emails.php
woocommerce_empty_price_html abstract-wc-product.php
woocommerce_file_download_path abstract-wc-product.php
woocommerce_free_price_html abstract-wc-product.php
woocommerce_free_sale_price_html abstract-wc-product.php
woocommerce_gateway_description abstract-wc-payment-gateway.php
woocommerce_gateway_icon abstract-wc-payment-gateway.php
woocommerce_gateway_title abstract-wc-payment-gateway.php
woocommerce_generate_order_key class-wc-checkout.php
woocommerce_get_availability abstract-wc-product.php
woocommerce_get_cancel_order_url class-wc-order.php
woocommerce_get_cart_tax class-wc-cart.php
woocommerce_get_cart_url class-wc-cart.php
woocommerce_get_catalog_ordering_args class-wc-query.php
woocommerce_get_checkout_payment_url class-wc-order.php
woocommerce_get_checkout_url class-wc-cart.php
woocommerce_get_country_locale_base class-wc-countries.php
woocommerce_get_country_locale_default class-wc-countries.php
woocommerce_get_discounted_price class-wc-cart.php
woocommerce_get_downloadable_file_urls class-wc-order.php
woocommerce_get_formatted_order_total class-wc-order.php
woocommerce_get_item_count class-wc-order.php
woocommerce_get_item_data class-wc-cart.php
woocommerce_get_order_item_totals class-wc-order.php
woocommerce_get_price abstract-wc-product.php
woocommerce_get_price_excluding_tax abstract-wc-product.php
woocommerce_get_price_html class-wc-product-grouped.php, class-wc-product-variable.php, abstract-wc-product.php
woocommerce_get_price_including_tax abstract-wc-product.php
woocommerce_get_product_from_item class-wc-order.php
woocommerce_get_remove_url class-wc-cart.php
woocommerce_get_return_url abstract-wc-payment-gateway.php
woocommerce_get_shop_coupon_data class-wc-coupon.php
woocommerce_grouped_price_html class-wc-product-grouped.php
woocommerce_integrations class-wc-integrations.php
woocommerce_is_purchasable class-wc-product-external.php, class-wc-product-grouped.php, abstract-wc-product.php
woocommerce_is_sold_individually abstract-wc-product.php
woocommerce_item_is_discounted class-wc-cart.php, class-wc-cart.php
woocommerce_layered_nav_link class-wc-widget-layered-nav.php
woocommerce_matched_rates class-wc-tax.php
woocommerce_matched_tax_rates class-wc-tax.php
woocommerce_new_customer_data class-wc-checkout.php
woocommerce_order_amount_cart_discount class-wc-order.php
woocommerce_order_amount_item_subtotal class-wc-order.php
woocommerce_order_amount_item_tax class-wc-order.php
woocommerce_order_amount_item_total class-wc-order.php
woocommerce_order_amount_line_subtotal class-wc-order.php
woocommerce_order_amount_line_tax class-wc-order.php
woocommerce_order_amount_line_total class-wc-order.php, class-wc-order.php
woocommerce_order_amount_order_discount class-wc-order.php
woocommerce_order_amount_shipping class-wc-order.php
woocommerce_order_amount_shipping_tax class-wc-order.php
woocommerce_order_amount_total class-wc-order.php
woocommerce_order_amount_total_discount class-wc-order.php
woocommerce_order_amount_total_tax class-wc-order.php
woocommerce_order_cart_discount_to_display class-wc-order.php
woocommerce_order_discount_to_display class-wc-order.php
woocommerce_order_formatted_line_subtotal class-wc-order.php
woocommerce_order_get_items class-wc-order.php
woocommerce_order_is_download_permitted class-wc-order.php
woocommerce_order_item_quantity class-wc-order.php
woocommerce_order_number class-wc-order.php
woocommerce_order_shipping_method class-wc-order.php
woocommerce_order_shipping_to_display class-wc-order.php
woocommerce_order_subtotal_to_display class-wc-order.php
woocommerce_order_tax_totals class-wc-order.php
woocommerce_package_rates class-wc-shipping.php
woocommerce_payment_complete_order_status class-wc-order.php
woocommerce_payment_gateway_supports abstract-wc-payment-gateway.php
woocommerce_payment_gateways class-wc-payment-gateways.php
woocommerce_payment_successful_result class-wc-checkout.php
woocommerce_price_ex_tax_amount class-wc-tax.php, class-wc-tax.php
woocommerce_price_html abstract-wc-product.php
woocommerce_price_inc_tax_amount class-wc-tax.php
woocommerce_process_checkout_field_.$key class-wc-checkout.php
woocommerce_product_categories_widget_args class-wc-widget-product-categories.php
woocommerce_product_class class-wc-product-factory.php
woocommerce_product_default_attributes class-wc-product-variable.php
woocommerce_product_is_visible class-wc-product-variation.php, abstract-wc-product.php
woocommerce_product_parent abstract-wc-product.php
woocommerce_product_tag_cloud_widget_args class-wc-widget-product-tag-cloud.php
woocommerce_product_tax_class abstract-wc-product.php
woocommerce_product_title class-wc-product-simple.php, abstract-wc-product.php
woocommerce_rate_code class-wc-tax.php
woocommerce_rate_label class-wc-tax.php
woocommerce_registration_errors class-wc-checkout.php
woocommerce_sale_price_html abstract-wc-product.php
woocommerce_settings_api_sanitized_fields_.$this->id abstract-wc-settings-api.php
woocommerce_shipping_.$this->id._is_available abstract-wc-shipping-method.php
woocommerce_shipping_calculator_enable_city class-wc-shortcode-cart.php
woocommerce_shipping_calculator_enable_postcode class-wc-shortcode-cart.php
woocommerce_shipping_chosen_method class-wc-shipping.php
woocommerce_shipping_fields class-wc-countries.php
woocommerce_shipping_method_supports abstract-wc-shipping-method.php
woocommerce_shipping_method_title abstract-wc-shipping-method.php
woocommerce_shipping_methods class-wc-shipping.php
woocommerce_shortcode_order_tracking_order_id class-wc-shortcode-order-tracking.php
woocommerce_states class-wc-countries.php
woocommerce_stock_amount class-wc-checkout.php, class-wc-product-grouped.php, class-wc-product-variable.php, class-wc-product-variable.php, class-wc-product-variable.php, class-wc-product-variable.php, class-wc-product-variation.php, class-wc-product-variation.php, class-wc-product-variation.php, abstract-wc-product.php
woocommerce_stock_html class-wc-product-variable.php
woocommerce_tax_round class-wc-tax.php
woocommerce_thankyou_order_id class-wc-shortcode-thankyou.php
woocommerce_thankyou_order_key class-wc-shortcode-thankyou.php
woocommerce_valid_order_statuses_for_payment class-wc-shortcode-pay.php, class-wc-shortcode-pay.php
woocommerce_variable_empty_price_html class-wc-product-variable.php
woocommerce_variable_free_price_html class-wc-product-variable.php
woocommerce_variable_free_sale_price_html class-wc-product-variable.php
woocommerce_variable_price_html class-wc-product-variable.php
woocommerce_variable_sale_price_html class-wc-product-variable.php
woocommerce_variation_empty_price_html class-wc-product-variation.php
woocommerce_variation_free_price_html class-wc-product-variation.php
woocommerce_variation_option_name class-wc-cart.php
woocommerce_variation_price_html class-wc-product-variation.php
woocommerce_variation_sale_price_html class-wc-product-variation.php

Admin Hooks ↑ Back to Top

Actions

Hook File(s)
woocommerce_admin_attribute_types woocommerce-admin-attributes.php, woocommerce-admin-attributes.php
woocommerce_admin_css woocommerce-admin-init.php
woocommerce_admin_field_.$value[type] woocommerce-admin-settings.php
woocommerce_admin_order_actions_end shop_order.php
woocommerce_admin_order_actions_start shop_order.php
woocommerce_duplicate_product duplicate_product.php
woocommerce_product_bulk_edit_end product.php
woocommerce_product_bulk_edit_save product.php
woocommerce_product_bulk_edit_start product.php
woocommerce_reports_tabs woocommerce-admin-reports.php
woocommerce_right_now_orders_table_end woocommerce-admin-dashboard.php
woocommerce_right_now_shop_content_table_end woocommerce-admin-dashboard.php
woocommerce_settings_.sanitize_title$value[id] woocommerce-admin-settings.php
woocommerce_settings_.sanitize_title$value[id]._after woocommerce-admin-settings.php
woocommerce_settings_.sanitize_title$value[id]._end woocommerce-admin-settings.php
woocommerce_settings_saved woocommerce-admin-settings.php
woocommerce_settings_start woocommerce-admin-settings.php
woocommerce_settings_tabs woocommerce-admin-settings.php
woocommerce_settings_tabs_.$current_tab woocommerce-admin-settings.php
woocommerce_update_option settings-save.php
woocommerce_update_option_.$type settings-save.php
woocommerce_update_options woocommerce-admin-settings.php
woocommerce_update_options_.$current_tab woocommerce-admin-settings.php
woocommerce_update_options_.$current_tab._.$current_section woocommerce-admin-settings.php, woocommerce-admin-settings.php
woocommerce_update_options_.$current_tab._.$current_section_class->id woocommerce-admin-settings.php, woocommerce-admin-settings.php

Filters

Hook File(s)
woocommerce_admin_order_actions shop_order.php
woocommerce_debug_posting woocommerce-admin-status.php
woocommerce_reports_charts woocommerce-admin-reports.php
woocommerce_reports_order_link woocommerce-admin-reports.php, woocommerce-admin-reports.php, woocommerce-admin-reports.php
woocommerce_reports_order_statuses woocommerce-admin-reports.php, woocommerce-admin-reports.php, woocommerce-admin-reports.php, woocommerce-admin-reports.php, woocommerce-admin-reports.php, woocommerce-admin-reports.php
woocommerce_reports_stock_overview_products woocommerce-admin-reports.php
woocommerce_screen_ids woocommerce-admin-init.php
woocommerce_settings_tabs_array woocommerce-admin-settings.php

Other Hooks ↑ Back to Top

Actions

Hook File(s)
before_woocommerce_init woocommerce.php
product_variation_linked woocommerce-ajax.php
woocommerce_after_template_part woocommerce-core-functions.php
woocommerce_ajax_added_to_cart woocommerce-ajax.php
woocommerce_api_wc_gateway_paypal woocommerce-functions.php
woocommerce_before_delete_order_item woocommerce-core-functions.php
woocommerce_before_template_part woocommerce-core-functions.php
woocommerce_cancelled_order woocommerce-functions.php
woocommerce_checkout_order_review woocommerce-ajax.php
woocommerce_checkout_update_order_review woocommerce-ajax.php
woocommerce_create_product_variation woocommerce-ajax.php
woocommerce_created_customer woocommerce-functions.php
woocommerce_customer_change_password woocommerce-functions.php
woocommerce_customer_save_address woocommerce-functions.php
woocommerce_delete_order_item woocommerce-core-functions.php
woocommerce_download_product woocommerce-functions.php
woocommerce_init woocommerce.php
woocommerce_loaded woocommerce.php
woocommerce_new_order_item woocommerce-core-functions.php
woocommerce_ordered_again woocommerce-functions.php
woocommerce_reduce_order_stock woocommerce-ajax.php
woocommerce_register_post_type woocommerce.php
woocommerce_register_taxonomy woocommerce.php
woocommerce_restore_order_stock woocommerce-ajax.php

Filters

Hook File(s)
raw_woocommerce_price woocommerce-core-functions.php
woocommerce_add_error woocommerce.php
woocommerce_add_message woocommerce.php
woocommerce_add_to_cart_handler woocommerce-functions.php
woocommerce_add_to_cart_message woocommerce-functions.php
woocommerce_add_to_cart_product_id woocommerce-functions.php, woocommerce-functions.php, woocommerce-ajax.php
woocommerce_add_to_cart_validation woocommerce-functions.php, woocommerce-functions.php, woocommerce-functions.php, woocommerce-functions.php, woocommerce-ajax.php
woocommerce_admin_menu_count woocommerce-core-functions.php
woocommerce_attribute_label woocommerce.php
woocommerce_attribute_orderby woocommerce.php
woocommerce_attribute_show_in_nav_menus woocommerce.php
woocommerce_attribute_taxonomies woocommerce.php
woocommerce_continue_shopping_redirect woocommerce-functions.php
woocommerce_currency woocommerce-core-functions.php
woocommerce_currency_symbol woocommerce-core-functions.php
woocommerce_date_format woocommerce-core-functions.php
woocommerce_file_download_method woocommerce-functions.php
woocommerce_file_download_path woocommerce-core-functions.php, woocommerce-ajax.php
woocommerce_found_customer_details class-wc-ajax.php
‘woocommerce_get_’ . $page . ‘_page_id’ wc-page-functions.php
‘woocommerce_get_image_size_’ . $image_size class-wc-admin-settings.php, wc-core-functions.php
woocommerce_is_account_page wc-conditional-functions.php
woocommerce_json_search_found_products class-wc-ajax.php
woocommerce_layered_nav_default_query_type class-wc-query.php
woocommerce_locate_template wc-core-functions.php
woocommerce_logged_out_hidden_page_ids wc-page-functions.php
woocommerce_login_redirect class-wc-form-handler.php
woocommerce_new_customer_data wc-user-functions.php
woocommerce_order_again_cart_item_data class-wc-form-handler.php
woocommerce_params class-wc-frontend-scripts.php
woocommerce_placeholder_img wc-product-functions.php
woocommerce_placeholder_img_src wc-product-functions.php
woocommerce_price_format wc-formatting-functions.php
‘woocommerce_process_myaccount_field_’ . $key class-wc-form-handler.php
woocommerce_reduce_order_stock_quantity class-wc-ajax.php
woocommerce_registration_redirect class-wc-form-handler.php
woocommerce_restore_order_stock_quantity class-wc-ajax.php
woocommerce_session_handler class-wc-unit-test-case.php, woocommerce.php
woocommerce_stock_amount wc-core-functions.php, wc-formatting-functions.php
woocommerce_stock_amount_cart_item class-wc-form-handler.php
woocommerce_time_format wc-formatting-functions.php
woocommerce_update_cart_validation class-wc-form-handler.php
Back to the top