Checkout Page Hooks

User
List all checkout page hooks
Assistant
In WooCommerce, the checkout page is full of action and filter hooks that allow developers to customize the process. Here's a categorized list of **key action hooks** and **filter hooks** used on the **checkout page**.

### **Main Checkout Page Action Hooks**

#### **Before & After Checkout Form**
– `woocommerce_before_checkout_form`
– `woocommerce_checkout_before_customer_details`
– `woocommerce_checkout_billing`
– `woocommerce_checkout_shipping`
– `woocommerce_checkout_after_customer_details`
– `woocommerce_before_order_notes`
– `woocommerce_after_order_notes`
– `woocommerce_checkout_before_order_review_heading`
– `woocommerce_checkout_before_order_review`
– `woocommerce_checkout_order_review`
– `woocommerce_checkout_after_order_review`
– `woocommerce_after_checkout_form`

### **Billing Section**
– `woocommerce_before_checkout_billing_form`
– `woocommerce_after_checkout_billing_form`

### **Shipping Section**
– `woocommerce_before_checkout_shipping_form`
– `woocommerce_after_checkout_shipping_form`

### **Order Review Section**
– `woocommerce_review_order_before_cart_contents`
– `woocommerce_review_order_after_cart_contents`
– `woocommerce_review_order_before_shipping`
– `woocommerce_review_order_after_shipping`
– `woocommerce_review_order_before_order_total`
– `woocommerce_review_order_after_order_total`
– `woocommerce_review_order_before_payment`
– `woocommerce_review_order_after_payment`

### **Payment Section**
– `woocommerce_checkout_before_payment`
– `woocommerce_checkout_after_payment`

### **Place Order Button**
– `woocommerce_review_order_before_submit`
– `woocommerce_review_order_after_submit`
– `woocommerce_checkout_terms_and_conditions`
– `woocommerce_checkout_before_terms_and_conditions`
– `woocommerce_checkout_after_terms_and_conditions`

### **Filters Commonly Used on Checkout Page**
– `woocommerce_checkout_fields` — modify checkout fields
– `woocommerce_billing_fields` — modify billing fields
– `woocommerce_shipping_fields` — modify shipping fields
– `woocommerce_default_address_fields` — modify address fields
– `woocommerce_checkout_get_value` — pre-fill form fields
– `woocommerce_checkout_update_order_meta` — save custom data

Let me know if you want to target a specific section (billing, shipping, payment, or review) or need a visual hook guide!

Leave a Comment

Your email address will not be published. Required fields are marked *