×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Action and Filter Hook Reference

This is a list of action and filter hooks found within Classic Commerce template files. Links will show where they occur on the GitHub repo.

Template Files

Hook Type File(s)
woocommerce_account_content action my-account.php
woocommerce_account_dashboard action dashboard.php
woocommerce_account_downloads_column_$COLUMN_ID action order-downloads.php
woocommerce_account_navigation action my-account.php
woocommerce_account_payment_methods_column_$COLUMN_ID action payment-methods.php
woocommerce_after_account_downloads action downloads.php
woocommerce_after_account_navigation action navigation.php
woocommerce_after_account_orders action orders.php
woocommerce_after_account_payment_methods action payment-methods.php
woocommerce_after_available_downloads action downloads.php, my-downloads.php
woocommerce_after_cart action cart.php
woocommerce_after_cart_contents action cart.php
woocommerce_after_cart_item_name action cart.php
woocommerce_after_cart_table action cart.php
woocommerce_after_cart_totals action cart-totals.php
woocommerce_after_checkout_billing_form action form-billing.php
woocommerce_after_checkout_form action form-checkout.php
woocommerce_after_checkout_registration_form action form-billing.php
woocommerce_after_checkout_shipping_form action form-shipping.php
woocommerce_after_customer_login_form action form-login.php
woocommerce_after_edit_account_address_form action form-edit-address.php
woocommerce_after_edit_account_form action form-edit-account.php
woocommerce_after_edit_address_form_$LOAD_ADDRESS action form-edit-address.php
woocommerce_after_lost_password_form action form-lost-password.php
woocommerce_after_main_content action archive-product.php, single-product.php
woocommerce_after_mini_cart action mini-cart.php
woocommerce_after_my_account action dashboard.php
woocommerce_after_order_notes action form-shipping.php
woocommerce_after_reset_password_form action form-reset-password.php
woocommerce_after_shipping_calculator action shipping-calculator.php
woocommerce_after_shipping_rate action cart-shipping.php
woocommerce_after_shop_loop action archive-product.php
woocommerce_after_shop_loop_item action content-product.php
woocommerce_after_shop_loop_item_title action content-product.php
woocommerce_after_single_product action content-single-product.php
woocommerce_after_single_product_summary action content-single-product.php
woocommerce_after_subcategory action content-product_cat.php
woocommerce_after_subcategory_title action content-product_cat.php
woocommerce_archive_description action archive-product.php
woocommerce_auth_page_footer action form-grant-access.php
woocommerce_auth_page_header action form-grant-access.php
woocommerce_available_download_count filter my-downloads.php
woocommerce_available_download_end action my-downloads.php
woocommerce_available_download_link filter my-downloads.php
woocommerce_available_download_start action my-downloads.php
woocommerce_available_downloads action downloads.php
woocommerce_before_account_downloads action downloads.php
woocommerce_before_account_navigation action navigation.php
woocommerce_before_account_orders action orders.php
woocommerce_before_account_orders_pagination action orders.php
woocommerce_before_account_payment_methods action payment-methods.php
woocommerce_before_available_downloads action downloads.php, my-downloads.php
woocommerce_before_cart action cart.php
woocommerce_before_cart_contents action cart.php
woocommerce_before_cart_table action cart.php
woocommerce_before_cart_totals action cart-totals.php
woocommerce_before_checkout_billing_form action form-billing.php
woocommerce_before_checkout_form action form-checkout.php
woocommerce_before_checkout_registration_form action form-billing.php
woocommerce_before_checkout_shipping_form action form-shipping.php
woocommerce_before_customer_login_form action form-login.php
woocommerce_before_edit_account_address_form action form-edit-address.php
woocommerce_before_edit_account_form action form-edit-account.php
woocommerce_before_edit_address_form_$LOAD_ADDRESS action form-edit-address.php
woocommerce_before_lost_password_form action form-lost-password.php
woocommerce_before_main_content action archive-product.php, single-product.php
woocommerce_before_mini_cart action mini-cart.php
woocommerce_before_mini_cart_contents action mini-cart.php
woocommerce_before_my_account action dashboard.php
woocommerce_before_order_notes action form-shipping.php
woocommerce_before_reset_password_form action form-reset-password.php
woocommerce_before_shipping_calculator action shipping-calculator.php
woocommerce_before_shop_loop action archive-product.php
woocommerce_before_shop_loop_item action content-product.php
woocommerce_before_shop_loop_item_title action content-product.php
woocommerce_before_single_product action content-single-product.php
woocommerce_before_single_product_summary action content-single-product.php
woocommerce_before_subcategory action content-product_cat.php
woocommerce_before_subcategory_title action content-product_cat.php
woocommerce_cart_actions action cart.php
woocommerce_cart_collaterals action cart.php
woocommerce_cart_contents action cart.php
woocommerce_cart_coupon action cart.php
woocommerce_cart_has_errors action cart-errors.php
woocommerce_cart_is_empty action cart-empty.php
woocommerce_cart_item_backorder_notification filter cart.php
woocommerce_cart_item_class filter review-order.php, cart.php
woocommerce_cart_item_name filter review-order.php, cart.php, mini-cart.php
woocommerce_cart_item_permalink filter cart.php, mini-cart.php
woocommerce_cart_item_price filter cart.php, mini-cart.php
woocommerce_cart_item_product filter review-order.php, cart.php, mini-cart.php
woocommerce_cart_item_product_id filter cart.php, mini-cart.php
woocommerce_cart_item_quantity filter cart.php
woocommerce_cart_item_remove_link filter cart.php, mini-cart.php
woocommerce_cart_item_subtotal filter review-order.php, cart.php
woocommerce_cart_item_thumbnail filter cart.php, mini-cart.php
woocommerce_cart_item_visible filter cart.php
woocommerce_cart_no_shipping_available_html filter cart-shipping.php
woocommerce_cart_totals_after_order_total action cart-totals.php
woocommerce_cart_totals_after_shipping action cart-totals.php
woocommerce_cart_totals_before_order_total action cart-totals.php
woocommerce_cart_totals_before_shipping action cart-totals.php
woocommerce_checkout_after_customer_details action form-checkout.php
woocommerce_checkout_after_order_review action form-checkout.php
woocommerce_checkout_after_terms_and_conditions action terms.php
woocommerce_checkout_before_customer_details action form-checkout.php
woocommerce_checkout_before_order_review action form-checkout.php
woocommerce_checkout_before_order_review_heading action form-checkout.php
woocommerce_checkout_before_terms_and_conditions action terms.php
woocommerce_checkout_billing action form-checkout.php
woocommerce_checkout_cart_item_quantity filter review-order.php
woocommerce_checkout_cart_item_visible filter review-order.php
woocommerce_checkout_coupon_message filter form-coupon.php
woocommerce_checkout_must_be_logged_in_message filter form-checkout.php
woocommerce_checkout_order_review action form-checkout.php
woocommerce_checkout_shipping action form-checkout.php
woocommerce_checkout_show_terms filter terms.php
woocommerce_checkout_terms_and_conditions action terms.php
woocommerce_comment_pagination_args filter single-product-reviews.php
woocommerce_create_account_default_checked filter form-billing.php
woocommerce_edit_account_form action form-edit-account.php
woocommerce_edit_account_form_end action form-edit-account.php
woocommerce_edit_account_form_start action form-edit-account.php
woocommerce_edit_account_form_tag action form-edit-account.php
woocommerce_email_after_order_table action email-order-details.php
woocommerce_email_before_order_table action email-order-details.php
woocommerce_email_customer_details action admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php
woocommerce_email_downloads_column_$COLUMN_ID action email-downloads.php
woocommerce_email_footer action admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php, customer-reset-password.php
woocommerce_email_footer_text filter email-footer.php
woocommerce_email_header action admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-new-account.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php, customer-reset-password.php
woocommerce_email_order_details action admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php
woocommerce_email_order_item_quantity filter email-order-items.php
woocommerce_email_order_meta action admin-cancelled-order.php, admin-failed-order.php, admin-new-order.php, customer-completed-order.php, customer-invoice.php, customer-note.php, customer-on-hold-order.php, customer-processing-order.php, customer-refunded-order.php
woocommerce_enable_order_notes_field filter form-shipping.php
woocommerce_login_form action form-login.php
woocommerce_login_form_end action form-login.php
woocommerce_login_form_start action form-login.php
woocommerce_loop_add_to_cart_link filter add-to-cart.php
woocommerce_lost_password_confirmation_message filter lost-password-confirmation.php
woocommerce_lost_password_message filter form-lost-password.php
woocommerce_lostpassword_form action form-lost-password.php
woocommerce_mini_cart_contents action mini-cart.php
woocommerce_mini_cart_item_class filter mini-cart.php
woocommerce_my_account_edit_address_title filter form-edit-address.php
woocommerce_my_account_get_addresses filter my-address.php
woocommerce_my_account_my_address_description filter my-address.php
woocommerce_my_account_my_downloads_title filter my-downloads.php
woocommerce_my_account_my_orders_column_$COLUMN_ID action my-orders.php, orders.php
woocommerce_my_account_my_orders_columns filter my-orders.php
woocommerce_my_account_my_orders_query filter my-orders.php
woocommerce_my_account_my_orders_title filter my-orders.php
woocommerce_no_available_payment_methods_message filter form-pay.php, payment.php
woocommerce_no_products_found action archive-product.php
woocommerce_no_shipping_available_html filter cart-shipping.php
woocommerce_order_button_html filter payment.php
woocommerce_order_details_after_customer_details action order-details-customer.php
woocommerce_order_details_after_order_table action order-details.php
woocommerce_order_details_after_order_table_items action order-details.php
woocommerce_order_details_before_order_table action order-details.php
woocommerce_order_details_before_order_table_items action order-details.php
woocommerce_order_item_class filter order-details-item.php, email-order-items.php, form-pay.php
woocommerce_order_item_meta_end action order-details-item.php, email-order-items.php, form-pay.php
woocommerce_order_item_meta_start action order-details-item.php, email-order-items.php, form-pay.php
woocommerce_order_item_name filter order-details-item.php, email-order-items.php, form-pay.php
woocommerce_order_item_permalink filter order-details-item.php
woocommerce_order_item_quantity_html filter order-details-item.php, form-pay.php
woocommerce_order_item_thumbnail filter email-order-items.php
woocommerce_order_item_visible filter order-details-item.php, email-order-items.php, form-pay.php
woocommerce_order_tracking_status filter tracking.php
woocommerce_pagination_args filter pagination.php
woocommerce_pay_order_after_submit action form-pay.php
woocommerce_pay_order_before_submit action form-pay.php
woocommerce_pay_order_button_html filter form-pay.php
woocommerce_proceed_to_checkout action cart-totals.php
woocommerce_product_meta_end action meta.php
woocommerce_product_meta_start action meta.php
woocommerce_product_price_class filter price.php
woocommerce_product_review_comment_form_args filter single-product-reviews.php
woocommerce_product_review_list_args filter single-product-reviews.php
woocommerce_product_thumbnails action product-image.php
woocommerce_product_thumbnails_columns filter product-image.php
woocommerce_purchase_note_order_statuses filter order-details.php
woocommerce_purchase_order_item_types filter order-details.php
woocommerce_receipt_$ORDER->GET_PAYMENT_METHOD action order-receipt.php
woocommerce_register_form action form-login.php
woocommerce_register_form_end action form-login.php
woocommerce_register_form_start action form-login.php
woocommerce_register_form_tag action form-login.php
woocommerce_reset_password_message filter form-reset-password.php
woocommerce_resetpassword_form action form-reset-password.php
woocommerce_return_to_shop_redirect filter downloads.php, orders.php, cart-empty.php
woocommerce_review_after_comment_text action review.php
woocommerce_review_before action review.php
woocommerce_review_before_comment_meta action review.php
woocommerce_review_before_comment_text action review.php
woocommerce_review_comment_text action review.php
woocommerce_review_meta action review.php
woocommerce_review_order_after_cart_contents action review-order.php
woocommerce_review_order_after_order_total action review-order.php
woocommerce_review_order_after_payment action payment.php
woocommerce_review_order_after_shipping action review-order.php
woocommerce_review_order_after_submit action payment.php
woocommerce_review_order_before_cart_contents action review-order.php
woocommerce_review_order_before_order_total action review-order.php
woocommerce_review_order_before_payment action payment.php
woocommerce_review_order_before_shipping action review-order.php
woocommerce_review_order_before_submit action payment.php
woocommerce_reviews_title filter single-product-reviews.php
woocommerce_sale_flash filter sale-flash.php
woocommerce_share action share.php
woocommerce_ship_to_different_address_checked filter form-shipping.php
woocommerce_shipping_calculator_enable_city filter shipping-calculator.php
woocommerce_shipping_calculator_enable_country filter shipping-calculator.php
woocommerce_shipping_calculator_enable_postcode filter shipping-calculator.php
woocommerce_shipping_calculator_enable_state filter shipping-calculator.php
woocommerce_shipping_estimate_html filter cart-shipping.php
woocommerce_shipping_may_be_available_html filter cart-shipping.php
woocommerce_shop_loop action archive-product.php
woocommerce_shop_loop_item_title action content-product.php
woocommerce_shop_loop_subcategory_title action content-product_cat.php
woocommerce_short_description filter short-description.php
woocommerce_show_page_title filter archive-product.php
woocommerce_sidebar action archive-product.php, single-product.php
woocommerce_single_product_image_gallery_classes filter product-image.php
woocommerce_single_product_image_thumbnail_html filter product-image.php, product-thumbnails.php
woocommerce_single_product_summary action content-single-product.php
woocommerce_terms_is_checked_default filter terms.php
woocommerce_thankyou action thankyou.php
woocommerce_thankyou_$ORDER->GET_PAYMENT_METHOD action thankyou.php
woocommerce_thankyou_order_received_text filter thankyou.php
woocommerce_view_order action tracking.php, view-order.php
woocommerce_widget_cart_item_quantity filter mini-cart.php
woocommerce_widget_cart_item_visible filter mini-cart.php
woocommerce_widget_product_item_end action content-widget-product.php
woocommerce_widget_product_item_start action content-widget-product.php
woocommerce_widget_product_review_item_end action content-widget-reviews.php
woocommerce_widget_product_review_item_start action content-widget-reviews.php
woocommerce_widget_shopping_cart_before_buttons action mini-cart.php
woocommerce_widget_shopping_cart_buttons action mini-cart.php