Ajax Cart for WooCommerce 1.5.5 has 6 actions and 18 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Ajax Cart for WooCommerce fires an action
add_action( 'wac_init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Ajax Cart for WooCommerce is about to use
add_filter( 'wac_button_link', function( $html, $label, $identifier ) {
// Change $html here.
return $html;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters the HTML of a - or + quantity button (Cart page; with the PRO, the * product, shop and Mini-Cart quantities too). Keep its `wac-qty-button * wac-btn-sub|inc` classes: the script finds the buttons by them. */ apply_filters( 'wac_button_link', $html, $label, $identifier ); -
/** * Filters the order amount that gives free shipping, as the bars show it (the * side cart, the Mini-Cart, the Cart page and the Cart block). 0 hides the * free shipping bar. A multi-currency shop can convert it to the shopper's * currency here. */ apply_filters( 'wac_free_shipping_threshold', $threshold ); -
/** * Filters a cart item's quantity field with its -/+ buttons, on the classic * Cart page. */ apply_filters( 'wac_quantity_div', $newDiv, $cart_item_key, $cart_item, $inputDiv ); -
/** * Filters whether the side cart (and its floating button) is on this page — * to leave it off a landing page, or to show it to some shoppers only. */ apply_filters( 'wac_side_cart_enabled', $enabled ); -
apply_filters( "{$this->common->getPluginAbbrev()}_{$alias}", true ); -
do_action( "mh_{$this->pluginAbbrev}_admin_buttons" ); -
do_action( "mh_{$this->pluginAbbrev}_after_tab", $normalizedTab ); -
apply_filters( "mh_{$this->pluginAbbrev}_saving_options", $opts ); -
apply_filters( "mh_{$this->pluginAbbrev}_settings", array() ); -
do_action( "mh_{$this->pluginAbbrev}_trigger_save", $btnClick ); -
apply_filters( 'mh_wac_setting_value', $name ); -
apply_filters( 'wac_free_shipping_block_enabled', $enabled ); -
apply_filters( 'wac_frontend_vars', array( 'updating_text' => __( 'Updating...', 'woocommerce-ajax-cart' ), 'warn_remove_text' => __( 'Are you sure you want to remove this item from cart?', 'woocommerce-ajax-cart' ), 'ajax_timeout' => wac_option('ajax_timeout'), 'confirm_zero_qty' => wac_option('confirmation_zero_qty'), ) ); -
do_action( 'wac_init' ); -
apply_filters( 'wac_progress_bar_html', wac_free_shipping_bar_html() ); -
do_action( 'wac_side_cart_after_items' ); -
do_action( 'wac_side_cart_before_items' ); -
apply_filters( 'wac_template_file', $located, $template_name, $args );
Generated from Ajax Cart for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: