Available Hooks: Actions And Filters
Hooks are a great feature of WordPress which allow you to change or add code without editing core files.
There’s are two types of hook available; actions and filters.
- Actions
An action allows you to insert or run code at a specific point. - Filters
A filter allows you to modify the data that is returned in a function or method.
Some of these hooks have additional parameters passed to them which you can use in your own functions. You can find the hook in the reference file to see what is available.
Hook flux_after_content
Type action
File templates/template-classic.php
Description Flux after content.
Hook flux_after_content
Type action
File templates/template-modern.php
Description Flux after content.
Hook flux_after_coupon_form
Type action
File inc/class-steps.php
Description After coupon form.
Hook flux_after_header
Type action
File templates/template-classic.php
Description Flux after header.
Hook flux_after_header
Type action
File inc/class-steps.php
Description After header.
Hook flux_after_layout
Type action
File templates/template-classic.php
Description Flux after layout.
Hook flux_after_layout
Type action
File templates/template-modern.php
Description Flux after layout.
Hook flux_after_step_content
Type action
File inc/class-steps.php
Args 1
Description After step content.
Hook flux_after_step_content_{$step['slug']}
Type action
File inc/class-steps.php
Hook flux_before_billing_address_heading
Type action
File inc/class-steps.php
Description After Billing address heading.
Hook flux_before_coupon_form
Type action
File inc/class-steps.php
Description Before coupon form.
Hook flux_before_header
Type action
File templates/template-classic.php
Description Flux before header.
Hook flux_before_header
Type action
File inc/class-steps.php
Description Before Header.
Hook flux_before_layout
Type action
File templates/template-classic.php
Description Flux before layout.
Hook flux_before_layout
Type action
File templates/template-modern.php
Description Flux before layout.
Hook flux_before_step_content
Type action
File inc/class-steps.php
Args 1
Description Before step content.
Hook flux_before_step_content_{$step['slug']}
Type action
File inc/class-steps.php
Hook flux_checkout_content_left_end
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Content left start.
Hook flux_checkout_content_left_start
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Content left start.
Hook flux_checkout_content_right_end
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Content right end.
Hook flux_checkout_content_right_start
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Content right start.
Hook flux_checkout_order_review
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Order review.
Hook flux_checkout_order_review
Type action
File woocommerce/classic/checkout/form-checkout.php
Args 1
-
$checkout
— \WC_Checkout
Description Hook to display the order review.
Hook flux_elements_after_print_content
Type action
File inc/class-checkout-elements.php
Args 1
-
$element
— \Iconic_Flux_Checkout_Element
Description After content for a single Checkout Element is printed.
Hook flux_elements_before_print_content
Type action
File inc/class-checkout-elements.php
Args 1
-
$element
— \Iconic_Flux_Checkout_Element
Description Before content for a single Checkout Element is printed.
Hook flux_footer_end_final_step
Type action
File inc/class-sidebar.php
Description Fires at the end of the footer on the final step of the checkout.
Hook flux_footer_start_final_step
Type action
File inc/class-sidebar.php
Description Fires at the start of the footer on the final step of the checkout.
Hook flux_thankyou_after_content
Type action
File inc/class-thankyou.php
Args 1
-
$order
— \WC_Order
Description Hook: after thank you page content.
Hook flux_thankyou_after_customer_details
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: After customer details.
Hook flux_thankyou_after_customer_details_payment_row
Type action
File inc/class-thankyou.php
Args 1
Description After Customer detail rows.
Hook flux_thankyou_after_downloads
Type action
File inc/class-thankyou.php
Args 1
Description After thank you downloads hook.
Hook flux_thankyou_after_map
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: After Map.
Hook flux_thankyou_after_order_status
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: After order status.
Hook flux_thankyou_after_product_details
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: After Product details.
Hook flux_thankyou_before_customer_details
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: Before customer details.
Hook flux_thankyou_before_downloads
Type action
File inc/class-thankyou.php
Args 1
Description Before thank you downloads hook.
Hook flux_thankyou_before_map
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: Before Map.
Hook flux_thankyou_before_order_status
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: Before order status.
Hook flux_thankyou_before_product_details
Type action
File inc/class-thankyou.php
Args 1
Description Thank you page: Before Product details.
Hook woocommerce_after_checkout_billing_form
Type action
File inc/class-steps.php
Args 1
-
$checkout
— \WC_Checkout
Description After checkout billing form.
Hook woocommerce_after_checkout_form
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description After the checkout form.
Hook woocommerce_after_checkout_form
Type action
File woocommerce/classic/checkout/form-checkout.php
Args 1
-
$checkout
— \WC_Checkout
Description Fires after checkout form.
Hook woocommerce_after_checkout_registration_form
Type action
File inc/class-steps.php
Args 1
Description After checkout registration form.
Hook woocommerce_after_order_notes
Type action
File inc/class-steps.php
Args 1
Description After order notes.
Hook woocommerce_before_checkout_billing_form
Type action
File inc/class-steps.php
Args 1
-
$checkout
— \WC_Checkout
Description Before checkout billing form.
Hook woocommerce_before_checkout_form
Type action
File woocommerce/modern/checkout/form-checkout.php
Args 1
Description Before the checkout form.
Hook woocommerce_before_checkout_form
Type action
File woocommerce/classic/checkout/form-checkout.php
Args 1
-
$checkout
— \WC_Checkout
Description Fires before checkout form.
Hook woocommerce_before_checkout_registration_form
Type action
File inc/class-steps.php
Args 1
-
$checkout
— \WC_Checkout
Description Before checkout registration form.
Hook woocommerce_before_order_notes
Type action
File inc/class-steps.php
Args 1
Description Before order notes.
Hook woocommerce_check_cart_items
Type action
File inc/class-sidebar.php
Description Check cart items are valid.
Hook woocommerce_checkout_after_customer_details
Type action
File inc/class-steps.php
Description After customer details.
Hook woocommerce_checkout_after_order_review
Type action
File inc/class-steps.php
Description After checkout order review.
Hook woocommerce_checkout_before_customer_details
Type action
File inc/class-steps.php
Description Before customer details.
Hook woocommerce_checkout_before_order_review
Type action
File inc/class-steps.php
Description Before checkout order review.
Hook woocommerce_checkout_before_order_review_heading
Type action
File inc/class-steps.php
Description Before checkout order review heading.
Hook woocommerce_checkout_order_review
Type action
File inc/class-steps.php
Description Checkout order review.
Hook woocommerce_login_form
Type action
File woocommerce/modern/checkout/form-login.php
Description Login form.
Hook woocommerce_login_form
Type action
File woocommerce/classic/checkout/form-login.php
Description The login form.
Hook woocommerce_login_form_end
Type action
File woocommerce/modern/checkout/form-login.php
Description After login form.
Hook woocommerce_login_form_end
Type action
File woocommerce/classic/checkout/form-login.php
Description After the login form.
Hook woocommerce_login_form_start
Type action
File woocommerce/modern/checkout/form-login.php
Description Before login form.
Hook woocommerce_login_form_start
Type action
File woocommerce/classic/checkout/form-login.php
Description Before the login form.
Hook woocommerce_order_item_meta_end
Type action
File inc/class-thankyou.php
Args 4
Description Thank you page: Order item meta end.
Hook woocommerce_order_item_meta_start
Type action
File inc/class-thankyou.php
Args 4
Description Thank you page: Order item meta start.
Hook woocommerce_pay_order_after_submit
Type action
File woocommerce/common/checkout/form-pay.php
Description Order pay page – after submit button.
Hook woocommerce_pay_order_before_submit
Type action
File woocommerce/common/checkout/form-pay.php
Description Order pay page – before submit button.
Hook woocommerce_thankyou
Type action
File inc/class-thankyou.php
Args 1
Description WooCommerce Thank you hook.
Flux Checkout for WooCommerce
Prevent abandoned carts with a slick multi-step checkout experience, designed for your customer’s device.
Was this helpful?
Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.