Product Bundles for WooCommerce 0.1.6 has 4 actions and 22 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 Product Bundles for WooCommerce fires an action
add_action( 'nanflows_bundle_saved', function( $id, $bundle ) {
// Your code runs here.
}, 10, 2 );
// Change a value Product Bundles for WooCommerce is about to use
add_filter( 'nanflows_bundle_card_html', function( $html, $product, $args ) {
// 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
-
/** * The bundle card's HTML. */ apply_filters( 'nanflows_bundle_card_html', $html, $product, $args ); -
/** * What the admin app is told about this shop. */ apply_filters( 'nanflows_bundle_admin_config', $config ); -
/** * The capability needed to create, edit and delete bundles and see their * reports. */ apply_filters( 'nanflows_bundle_capability', self::DEFAULT_CAP ); -
/** * The bundle a cart line holds, resolved to the customer's selection. */ apply_filters( 'nanflows_bundle_cart_definition', $bundle, $item ); -
/** * HTML after a bundle's name in the product page's radio choice, such as Pro's * badge. */ apply_filters( 'nanflows_bundle_choice_name_after', '', $bundle ); -
/** * Gateway IDs that count as cash on delivery. */ apply_filters( 'nanflows_bundle_cod_gateways', (array) Settings::get( 'checkout', 'cod_gateways' ) ); -
/** * Product types that may go inside a bundle, besides variable products. Simple * covers physical, virtual and downloadable products alike. */ apply_filters( 'nanflows_bundle_component_types', array( 'simple' ) ); -
/** * The bundle to price and stock-check when no customer has chosen yet. */ apply_filters( 'nanflows_bundle_default_definition', $bundle ); -
/** * How bundles are shown on product pages. */ apply_filters( 'nanflows_bundle_display_settings', array_merge( self::DEFAULTS, $saved ) ); -
/** * Messages for error codes, so a type another plugin adds (Bundle Pro's) can * explain its own rules. */ apply_filters( 'nanflows_bundle_error_messages', self::lite() ); -
/** * Bundle types whose optional products are tick-box extras. */ apply_filters( 'nanflows_bundle_extras_types', array( FrequentlyBoughtTogetherType::SLUG ) ); -
/** * Whether a bundle's own page is drawn wide (bundles where shoppers pick from * many products) rather than as a narrow column. */ apply_filters( 'nanflows_bundle_landing_wide', false, $product ); -
/** * Bundle types shown on their first product's page without being picked. */ apply_filters( 'nanflows_bundle_main_product_types', array() ); -
/** * The most of this bundle one customer can buy now; -1 for no limit. A * pick-your-own type (Pro) cannot know before the picking. */ apply_filters( 'nanflows_bundle_max_purchase_quantity', $max, $bundle ); -
/** * The card for a type that draws its own (Pro's pick-your-own types). Return a * string to use it instead of the card below. */ apply_filters( 'nanflows_bundle_pre_card_html', null, $product, $args ); -
/** * A bundle's price, for types that price in their own way (Pro: volume tiers, * add-ons, "get Y" discounts, gift wrap). */ apply_filters( 'nanflows_bundle_price_breakdown', $breakdown, $bundle, $priced, $this->calculator() ); -
/** * Pricing rules added by another plugin (Bundle Pro), which then prices them * through nanflows_bundle_price_breakdown. */ apply_filters( 'nanflows_bundle_pricing_types', $types ); -
/** * Whether Pro features are switched on. */ apply_filters( 'nanflows_bundle_pro_license_valid', true ); -
/** * A bundle was created or updated. */ do_action( 'nanflows_bundle_saved', $id, $bundle ); -
do_action( 'nanflows_bundle_loaded', $this ); -
apply_filters( 'woocommerce_add_to_cart_form_action', ! empty( $args['own_page'] ) ? $product->get_permalink() : '' ); -
do_action( 'woocommerce_after_main_content' ); -
do_action( 'woocommerce_before_main_content' ); -
apply_filters( 'woocommerce_product_add_to_cart_text', $text, $this ); -
apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this ); -
woocommerce_product_single_add_to_cart_text
filter Used by 17 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_single_add_to_cart_text', \Nanflows\Bundle\Frontend\DisplaySettings::button_text(), $this );
Generated from Product Bundles 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: