WPC Product Bundles for WooCommerce 8.8.0 has 26 actions and 144 filters, read directly from its source code on Nov 17, 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 WPC Product Bundles for WooCommerce fires an action
add_action( 'woosb_above_item', function( $product, $global_product, $order ) {
// Your code runs here.
}, 10, 3 );
// Change a value WPC Product Bundles for WooCommerce is about to use
add_filter( 'wpc_admin_nav_items', function( $nav_items, $active_page ) {
// Change $nav_items here.
return $nav_items;
}, 10, 2 );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
-
woosb_item_visible
filterapply_filters( 'woosb_item_visible', true, $item['id'], $parent_id ); -
woosb_item_product_name
filterapply_filters( 'woosb_item_product_name', $product_name, $product ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', (int) $id, $post_type, true ); -
apply_filters( 'woosb_order_bundled_product_name', '<li>' . esc_html( $item['qty'] ) . ' × ' . esc_html( get_the_title( $item['id'] ) ) . '</li>', $item ); -
apply_filters( 'woosb_order_bundled_product_names', '<ul>' . implode( '', $items_str ) . '</ul>', $items ); -
woosb_use_sku
filterapply_filters( 'woosb_use_sku', false ); -
woosb_bundles_display_price
filterapply_filters( 'woosb_bundles_display_price', $bundles_display_price, $parent_item ); -
apply_filters( 'woosb_cart_item_discount_amount', $discount_amount, $parent_item ); -
woosb_get_bundled
filterapply_filters( 'woosb_get_bundled', [], $product ); -
apply_filters( 'woosb_get_discount_percentage', 0, $this ); -
woosb_ignore_round_price
filterapply_filters( 'woosb_ignore_round_price', false ); -
woosb_item_id
filterapply_filters( 'woosb_item_id', $item['id'] ); -
woosb_item_price_add_to_cart
filterapply_filters( 'woosb_item_price_add_to_cart', $_price, $child_item ); -
woosb_item_price_before_set
filterapply_filters( 'woosb_item_price_before_set', $_price, $item ); -
woosb_name_separator
filterapply_filters( 'woosb_name_separator', ' → ' ); -
apply_filters( 'woosb_parent_item_price_before_set', 0, $parent_item, null ); -
woosb_price_decimals
filterapply_filters( 'woosb_price_decimals', wc_get_price_decimals() ); -
woosb_round_price
filterapply_filters( 'woosb_round_price', ! apply_filters( 'woosb_ignore_round_price', false ) ); -
woosb_update_stock
filterapply_filters( 'woosb_update_stock', true, 'stock_status' ); -
wcml_raw_price_amount
filterapply_filters( 'wcml_raw_price_amount', $base_amount ); -
apply_filters( 'woocommerce_email_attachments', [], 'no_stock', $product, null ); -
woocommerce_email_headers
filterapply_filters( 'woocommerce_email_headers', 'Content-Type: text/html; charset=UTF-8', 'no_stock', $product, null ); -
apply_filters( 'woosb_allow_unpurchasable_qty', false ); -
apply_filters( 'woosb_auto_update_bundle_price', true ); -
woosb_cart_item_edit_url
filterapply_filters( 'woosb_cart_item_edit_url', add_query_arg( [ 'edit' => base64_encode( $cart_item['woosb_ids'] ), 'key' => $cart_item_key, ], $cart_item['data']->get_permalink() ), $cart_item, $cart_item_key ); -
woosb_cart_item_price
filterapply_filters( 'woosb_cart_item_price', wc_price( $cart_item['woosb_price'] ), $price, $cart_item ); -
woosb_cart_item_subtotal
filterapply_filters( 'woosb_cart_item_subtotal', $_subtotal, $subtotal, $cart_item ); -
woosb_custom_request_data
filterapply_filters( 'woosb_custom_request_data', 'data' ); -
apply_filters( 'woosb_disable_auto_price_default', 'off' ); -
apply_filters( 'woosb_disable_inventory_management', false ); -
woosb_get_bundles
filterapply_filters( 'woosb_get_bundles', self::$bundles_cache[ $product_id ], $product_id ); -
woosb_get_discount_amount
filterapply_filters( 'woosb_get_discount_amount', 0, $this ); -
woosb_get_ids_str
filterapply_filters( 'woosb_get_ids_str', $ids, $this ); -
apply_filters( 'woosb_get_price_html_from_min', '<span>' . esc_html( $this->helper->localization( 'from', esc_html__( 'From', 'woo-product-bundle' ) ) ) . '</span> ' . wc_price( $total_min ) . $product->get_price_suffix(), $total_min, $product ); -
apply_filters( 'woosb_get_price_html_min_only', wc_price( $total_min ) . $product->get_price_suffix(), $total_min, $product ); -
woosb_get_price_to_display
filterapply_filters( 'woosb_get_price_to_display', (float) wc_get_price_to_display( $product, [ 'price' => $qty['price'], 'qty' => $qty['qty'] ] ), $product, $qty, $min_or_max ); -
woosb_has_optional
filterapply_filters( 'woosb_has_optional', false, $this ); -
woosb_has_variables
filterapply_filters( 'woosb_has_variables', false, $this ); -
woosb_item_sku
filterapply_filters( 'woosb_item_sku', $item['sku'] ); -
woosb_show_bundled
filterapply_filters( 'woosb_show_bundled', true, $product->get_id() ); -
apply_filters( 'woosb_sold_individually_found_in_cart', true ); -
wc_aelia_cs_convert
filterapply_filters( 'wc_aelia_cs_convert', $base_amount, get_option( 'woocommerce_currency' ), get_woocommerce_currency() ); -
wcml_raw_price_filter
filterapply_filters( 'wcml_raw_price_filter', $base_amount ); -
apply_filters( 'woocommerce_email_content_low_stock', $message, $product ); -
apply_filters( 'woocommerce_email_content_no_stock', $message, $product ); -
apply_filters( 'woocommerce_email_recipient_low_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ); -
apply_filters( 'woocommerce_email_recipient_no_stock', get_option( 'woocommerce_stock_email_recipient' ), $product, null ); -
apply_filters( 'woocommerce_email_subject_low_stock', $subject, $product, null ); -
apply_filters( 'woocommerce_email_subject_no_stock', $subject, $product, null ); -
woocommerce_price_trim_zeros
filterapply_filters( 'woocommerce_price_trim_zeros', false ); -
apply_filters( 'woocommerce_product_add_to_cart_text', $text, $this ); -
apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this ); -
apply_filters( 'woocommerce_product_needs_shipping', ! $this->is_virtual() && ( $this->get_meta( 'woosb_shipping_fee' ) !== 'each' ), $this ); -
apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->helper->localization( 'button_single', $default_text ), $this ); -
woosb_above_item
actiondo_action( 'woosb_above_item', $product, $global_product, $order ); -
woosb_add_to_cart_validation
filterapply_filters( 'woosb_add_to_cart_validation', true ); -
woosb_add_variation_image
filterapply_filters( 'woosb_add_variation_image', true ); -
apply_filters( 'woosb_admin_order_bundled_product_name', '<li>' . esc_html( $item['qty'] ) . ' × ' . esc_html( get_the_title( $item['id'] ) ) . '</li>', $item ); -
apply_filters( 'woosb_admin_order_bundled_product_names', '<ul>' . implode( '', $items_str ) . '</ul>', $items ); -
woosb_after_add_to_cart_form
actiondo_action( 'woosb_after_add_to_cart_form', $product ); -
woosb_after_add_to_cart_item
actiondo_action( 'woosb_after_add_to_cart_item', $_key, $item, $cart_item_key, $product_id, $quantity, $_data ); -
do_action( 'woosb_after_add_to_cart_items', $items, $cart_item_key, $product_id, $quantity ); -
woosb_after_bundles
actiondo_action( 'woosb_after_bundles', $product ); -
woosb_after_bundles_item
actiondo_action( 'woosb_after_bundles_item', $bundle, $product ); -
do_action( 'woosb_after_bundles_item_title', $bundle, $product ); -
woosb_after_calculate_prices
actiondo_action( 'woosb_after_calculate_prices', $product, $price_regular, $price_sale, $price ); -
woosb_after_item
actiondo_action( 'woosb_after_item', $product, $global_product, $order ); -
woosb_after_item_name
actiondo_action( 'woosb_after_item_name', $product ); -
woosb_after_item_price
actiondo_action( 'woosb_after_item_price', $product ); -
woosb_after_table
actiondo_action( 'woosb_after_table', $product ); -
woosb_after_text
filterapply_filters( 'woosb_after_text', $product->get_meta( 'woosb_after_text' ), $product_id ); -
do_action( 'woosb_after_update_bundle_price', $bundle_id, $regular_price, $sale_price, $price ); -
woosb_after_wrap
actiondo_action( 'woosb_after_wrap', $product ); -
do_action( 'woosb_before_add_to_cart_form', $product ); -
do_action( 'woosb_before_add_to_cart_item', $item, $cart_item_key, $product_id, $quantity, $_data ); -
do_action( 'woosb_before_add_to_cart_items', $items, $cart_item_key, $product_id, $quantity ); -
apply_filters( 'woosb_before_admin_order_itemmeta_bundled', '<div class="woosb-itemmeta-bundled woosb-admin-itemmeta-bundled">' . sprintf( $this->helper->localization( 'bundled_in_s', esc_html__( 'Bundled in: %s', 'woo-product-bundle' ) ), esc_html( get_the_title( $parent_id ) ) ) . '</div>', $order_item_id, $order_item ); -
apply_filters( 'woosb_before_admin_order_itemmeta_bundles', '<div class="woosb-itemmeta-bundles woosb-admin-itemmeta-bundles">' . sprintf( $this->helper->localization( 'bundled_products_s', esc_html__( 'Bundled products: %s', 'woo-product-bundle' ) ), $items_str ) . '</div>', $order_item_id, $order_item ); -
woosb_before_bundles
actiondo_action( 'woosb_before_bundles', $product ); -
woosb_before_bundles_item
actiondo_action( 'woosb_before_bundles_item', $bundle, $product ); -
do_action( 'woosb_before_bundles_item_title', $bundle, $product ); -
woosb_before_item
actiondo_action( 'woosb_before_item', $product, $global_product, $order ); -
woosb_before_item_name
actiondo_action( 'woosb_before_item_name', $product ); -
woosb_before_item_price
actiondo_action( 'woosb_before_item_price', $product ); -
apply_filters( 'woosb_before_order_itemmeta_bundles', '<div class="woosb-itemmeta-bundles">' . sprintf( $this->helper->localization( 'bundled_products_s', esc_html__( 'Bundled products: %s', 'woo-product-bundle' ) ), $items_str ) . '</div>', $order_item_id, $order_item ); -
woosb_before_table
actiondo_action( 'woosb_before_table', $product ); -
woosb_before_text
filterapply_filters( 'woosb_before_text', $product->get_meta( 'woosb_before_text' ), $product_id ); -
woosb_before_wrap
actiondo_action( 'woosb_before_wrap', $product ); -
woosb_bundled_cart_item_data
filterapply_filters( 'woosb_bundled_cart_item_data', $_data, $item, $cart_item_key ); -
woosb_bundled_is_purchasable
filterapply_filters( 'woosb_bundled_is_purchasable', $purchasable, $product, $context ); -
woosb_bundled_tab
filterapply_filters( 'woosb_bundled_tab', [ 'title' => $this->helper->localization( 'bundled_products', esc_html__( 'Bundled products', 'woo-product-bundle' ) ), 'priority' => 50, 'callback' => [ $this, 'product_tab_bundled' ] ], $product ); -
woosb_bundles_tab
filterapply_filters( 'woosb_bundles_tab', [ 'title' => $this->helper->localization( 'bundles', esc_html__( 'Bundles', 'woo-product-bundle' ) ), 'priority' => 50, 'callback' => [ $this, 'product_tab_bundles' ] ], $product ); -
woosb_bundles_visible
filterapply_filters( 'woosb_bundles_visible', $_product->is_visible(), $_product ); -
woosb_cart_contents_count
filterapply_filters( 'woosb_cart_contents_count', $count ); -
woosb_cart_item_edit_link
filterapply_filters( 'woosb_cart_item_edit_link', $edit_link, $cart_item, $cart_item_key ); -
woosb_cart_item_name
filterapply_filters( 'woosb_cart_item_name', $_name, $name, $item ); -
woosb_check_variations_stock
filterapply_filters( 'woosb_check_variations_stock', true ); -
woosb_clean_ids
filterapply_filters( 'woosb_clean_ids', $ids ); -
apply_filters( 'woosb_clear_extra_options_exact_keys', [ 'cpf_product_price', 'cpf_bto_price', 'tm_epo_options_prices', 'tmcartepo', 'tm_meta_cpf' ] ); -
apply_filters( 'woosb_clear_extra_options_prefixes', [ 'tmcp_', 'tc_', 'cpf_', 'tm_', 'addon-', 'yith_wapo_', 'yith-wapo-' ] ); -
woosb_discount_decimals
filterapply_filters( 'woosb_discount_decimals', null ); -
woosb_discount_round_mode
filterapply_filters( 'woosb_discount_round_mode', 'round' ); -
woosb_exclude_bundled
filterapply_filters( 'woosb_exclude_bundled', false ); -
woosb_exclude_unpurchasable
filterapply_filters( 'woosb_exclude_unpurchasable', $exclude_unpurchasable === 'yes', $this ); -
woosb_generate_key
filterapply_filters( 'woosb_generate_key', $key ); -
apply_filters( 'woosb_get_cart_item_from_session', $cart_item, $session_values ); -
woosb_get_discount
filterapply_filters( 'woosb_get_discount', $discount, $this ); -
woosb_get_ids
filterapply_filters( 'woosb_get_ids', $this->get_meta( 'woosb_ids' ), $this ); -
woosb_get_item_count
filterapply_filters( 'woosb_get_item_count', $count ); -
woosb_get_items
filterapply_filters( 'woosb_get_items', $this->items, $this ); -
woosb_get_price
filterapply_filters( 'woosb_get_price', (float) $price, $product, $min_or_max ); -
woosb_get_price_from_min_qty
filterapply_filters( 'woosb_get_price_from_min_qty', true ); -
woosb_get_price_html
filterapply_filters( 'woosb_get_price_html', $price_html, $product ); -
woosb_get_price_html_auto
filterapply_filters( 'woosb_get_price_html_auto', $price_html, $price_regular, $price_sale, $price, $product ); -
woosb_get_price_html_min_max
filterapply_filters( 'woosb_get_price_html_min_max', wc_price( $min_price ) . ' - ' . wc_price( $max_price ) . $product->get_price_suffix(), $min_price, $max_price, $product ); -
woosb_get_setting
filterapply_filters( 'woosb_get_setting', $setting, $name, $default ); -
woosb_get_settings
filterapply_filters( 'woosb_get_settings', self::$settings ); -
woosb_group_key
filterapply_filters( 'woosb_group_key', $group_key, $product_id, $ids ); -
woosb_has_pricing_context
filterapply_filters( 'woosb_has_pricing_context', $has_pricing_context, $parent_item, $parent_key ); -
woosb_ignore_calc_weight
filterapply_filters( 'woosb_ignore_calc_weight', false ); -
woosb_ignore_get_price_html
filterapply_filters( 'woosb_ignore_get_price_html', false ); -
woosb_ignore_tax_for_bundles
filterapply_filters( 'woosb_ignore_tax_for_bundles', $parent_price > 0 ? false : true, $parent_item, $parent_price ); -
woosb_image_size
filterapply_filters( 'woosb_image_size', self::$image_size ); -
woosb_is_bundled_context
filterapply_filters( 'woosb_is_bundled_context', self::$bundled_context_depth > 0 ); -
woosb_is_fixed_price
filterapply_filters( 'woosb_is_fixed_price', $disable_auto_price === 'on', $this ); -
woosb_is_manage_stock
filterapply_filters( 'woosb_is_manage_stock', $this->get_meta( 'woosb_manage_stock' ) === 'on', $this ); -
woosb_item_attrs
filterapply_filters( 'woosb_item_attrs', [ 'key' => $key, 'name' => $product->get_name(), 'id' => $product->is_type( 'variable' ) ? 0 : $item['id'], 'price' => $item_price, 'o_price' => $item_price, 'price-suffix' => htmlentities( $product->get_price_suffix() ), 'stock' => $product->get_max_purchase_quantity(), 'qty' => $item_qty, 'order' => $order, ], $product, $global_product, $order ); -
woosb_item_class
filterapply_filters( 'woosb_item_class', $item_class, $product, $global_product, $order ); -
woosb_item_description
filterapply_filters( 'woosb_item_description', $product->is_type( 'variation' ) ? $product->get_description() : $product->get_short_description(), $product ); -
woosb_item_exclude
filterapply_filters( 'woosb_item_exclude', false, $product, $global_product ); -
woosb_item_has_link
filterapply_filters( 'woosb_item_has_link', $product->is_visible(), $product ); -
woosb_item_name
filterapply_filters( 'woosb_item_name', $item_name, $product, $global_product, $order ); -
woosb_item_price
filterapply_filters( 'woosb_item_price', $item_price, $product ); -
woosb_item_product_attrs
filterapply_filters( 'woosb_item_product_attrs', [ 'key' => $key, 'name' => $product_name, 'sku' => $product_sku, 'id' => $product_id, 'price' => $price, 'price-max' => $price_max, 'price-raw' => $this->helper->round_price( $this->helper->get_price( $product ) ), 'price-max-raw' => $this->helper->round_price( $this->helper->get_price( $product, 'max' ) ), ], $product ); -
woosb_item_product_image
filterapply_filters( 'woosb_item_product_image', '<span class="img">' . $product->get_image( [ 30, 30 ] ) . '</span>', $product ); -
woosb_item_product_info
filterapply_filters( 'woosb_item_product_info', $product->get_type() . '<br/>#' . $product_id, $product ); -
woosb_item_qty
filterapply_filters( 'woosb_item_qty', esc_html( $item['qty'] ) . ' × ', $item['qty'], $product ); -
woosb_item_text_class
filterapply_filters( 'woosb_item_text_class', $item_class, $item, $global_product, $order ); -
woosb_item_thumbnail
filterapply_filters( 'woosb_item_thumbnail', $product->get_image( $this->helper::get_image_size() ), $product ); -
woosb_key_characters
filterapply_filters( 'woosb_key_characters', 'abcdefghijklmnopqrstuvwxyz0123456789' ); -
woosb_key_length
filterapply_filters( 'woosb_key_length', 4 ); -
woosb_localization_{$key}
filterapply_filters( "woosb_localization_{$key}", $str ); -
apply_filters( 'woosb_manage_stock_optional_items', false ); -
woosb_minify_items
filterapply_filters( 'woosb_minify_items', $minify_items, $items ); -
woosb_order_item_subtotal
filterapply_filters( 'woosb_order_item_subtotal', wc_price( $order_item['_woosb_price'] * $order_item['quantity'] ), $subtotal, $order_item ); -
woosb_post_states
filterapply_filters( 'woosb_post_states', '<span class="woosb-state">' . sprintf( esc_html__( 'Bundle (%s)', 'woo-product-bundle' ), $count ) . '</span>', $count, $product ); -
woosb_price_trim_zeros
filterapply_filters( 'woosb_price_trim_zeros', apply_filters( 'woocommerce_price_trim_zeros', false ) ); -
apply_filters( 'woosb_product_add_to_cart_text', apply_filters( 'woocommerce_product_add_to_cart_text', $text, $this ), $this ); -
apply_filters( 'woosb_product_add_to_cart_url', apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this ), $this ); -
apply_filters( 'woosb_product_single_add_to_cart_text', apply_filters( 'woocommerce_product_single_add_to_cart_text', $this->helper->localization( 'button_single', $default_text ), $this ), $this ); -
woosb_products_attrs
filterapply_filters( 'woosb_products_attrs', [ 'discount-amount' => $discount_amount, 'discount' => $discount_percentage, 'fixed-price' => $fixed_price ? 'yes' : 'no', 'price' => wc_get_price_to_display( $product ), 'price-suffix' => htmlentities( $product->get_price_suffix() ), 'variables' => $has_variables ? 'yes' : 'no', 'optional' => $has_optional ? 'yes' : 'no', 'min' => $whole_min, 'max' => $whole_max, 'total-min' => $total_limit &&... ); -
woosb_products_class
filterapply_filters( 'woosb_products_class', 'woosb-products woosb-products-layout-' . $layout, $product ); -
woosb_qty_classes
filterapply_filters( 'woosb_qty_classes', [ 'input-text', 'woosb-qty', 'woosb_qty', 'qty', 'text' ] ); -
woosb_quantity_input
filterapply_filters( 'woosb_quantity_input', '<input type="number" class="input-text woosb-qty woosb_qty qty text" value="' . esc_attr( $item_qty ) . '" min="' . esc_attr( $item_min ) . '" max="' . esc_attr( $item_max ) . '" name="' . esc_attr( 'woosb_qty_' . $order ) . '" />', $qty_args, $product ); -
woosb_recalc_price
filterapply_filters( 'woosb_recalc_price', false ); -
woosb_remove_empty_bundle
filterapply_filters( 'woosb_remove_empty_bundle', true, $cart_item_key ); -
apply_filters( 'woosb_remove_orphaned_bundled_product', true, $cart_item_key, $cart_item ); -
apply_filters( 'woosb_remove_orphaned_bundled_products', true ); -
woosb_round_display_price
filterapply_filters( 'woosb_round_display_price', false ); -
woosb_round_mode
filterapply_filters( 'woosb_round_mode', 'round' ); -
woosb_rounded_price
filterapply_filters( 'woosb_rounded_price', $rounded_price, $price ); -
apply_filters( 'woosb_show_bundles_from_variation', false ); -
woosb_stock_quantity_mode
filterapply_filters( 'woosb_stock_quantity_mode', $this->helper->get_setting( 'stock_quantity_mode', 'hard_limit' ) ); -
woosb_types
filterapply_filters( 'woosb_types', self::$types ); -
woosb_under_item
actiondo_action( 'woosb_under_item', $product, $global_product, $order ); -
woosb_unique_group_key
filterapply_filters( 'woosb_unique_group_key', false, $product_id, $ids ); -
apply_filters( 'woosb_use_woocommerce_quantity_input', true ); -
woosb_vars
filterapply_filters( 'woosb_vars', [ 'wc_price_decimals' => wc_get_price_decimals(), 'wc_price_format' => get_woocommerce_price_format(), 'wc_price_thousand_separator' => wc_get_price_thousand_separator(), 'wc_price_decimal_separator' => wc_get_price_decimal_separator(), 'wc_currency_symbol' => get_woocommerce_currency_symbol(), 'price_decimals' => apply_filters( 'woosb_price_decimals', wc_get_price_decimals() ), 'price_format' ... ); -
woosb_wpml_filters
filterapply_filters( 'woosb_wpml_filters', true );
Generated from WPC Product Bundles for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: