HaywoodTech Conditional Shipping for WooCommerce 1.1.0 has 2 actions and 7 filters, read directly from its source code on Nov 19, 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 HaywoodTech Conditional Shipping for WooCommerce fires an action
add_action( 'hwtcs_enqueue_scripts', function( $script, $handle ) {
// Your code runs here.
}, 10, 2 );
// Change a value HaywoodTech Conditional Shipping for WooCommerce is about to use
add_filter( 'hwtcs_cart_context', function( $context, $package, $method ) {
// Change $context here.
return $context;
}, 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
-
/** * This filter is documented in src/WooCommerce/ShippingMethod.php */ apply_filters( 'hwtcs_cart_context', $context, $package, $this->method ); -
/** * Fires after one of HaywoodTech Conditional Shipping's scripts is enqueued. */ do_action( 'hwtcs_enqueue_scripts', $script, $handle ); -
/** * Filters the free-shipping notice in the cart. Return '' to hide it. */ apply_filters( 'hwtcs_free_shipping_notice', $message, $remaining ); -
/** * Filters every cart context built from a WooCommerce shipping package. */ apply_filters( 'hwtcs_package_cart_context', $context, $package ); -
/** * Filters the rate a HaywoodTech Conditional Shipping method offers, before * it's added. */ apply_filters( 'hwtcs_rate', $rate, $pricing, $this ); -
/** * Fires once, when HaywoodTech Conditional Shipping builds its registry of * condition and action types. */ do_action( 'hwtcs_register_types', self::$registry ); -
/** * Filters one test cart's result in the cart simulator. */ apply_filters( 'hwtcs_simulated_cart', $result, $context, $rule_set, $built['package'] ); -
/** * Filters the warnings about a rule set that depend on the store, such as a * slug it doesn't have. */ apply_filters( 'hwtcs_store_checks', $warnings, $rule_set ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins → Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', true );
Generated from HaywoodTech Conditional Shipping 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: