WPC Composite Products for WooCommerce 8.0.7 has 9 actions and 119 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 Composite Products for WooCommerce fires an action
add_action( 'wooco_after_component', function( $component, $order ) {
// Your code runs here.
}, 10, 2 );
// Change a value WPC Composite Products 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
-
apply_filters( 'wooco_order_component_product_name', '<li>' . $item['component'] . ': ' . $item['qty'] . ' × ' . $item_product->get_name() . '</li>', $item, $cart_item ); -
wooco_name_separator
filterapply_filters( 'wooco_name_separator', ' → ' ); -
apply_filters( 'wooco_order_component_product_names', '<ul>' . implode( '', $items_str ) . '</ul>', $items ); -
apply_filters( 'wooco_component_product_selected', isset( $component['default'] ) && ( $component['default'] == $component_product['id'] ), $component_product, $component ); -
wooco_product_original_price
filterapply_filters( 'wooco_product_original_price', ( WPCleverWooco_Helper::get_setting( 'product_price', 'sale_price' ) === 'regular_price' ) ? $_product->get_regular_price( 'edit' ) : $_product->get_price( 'edit' ), $cart_item['data'], 'before_calculate_totals' ); -
wooco_quickview_variation
filterapply_filters( 'wooco_quickview_variation', 'default' ); -
apply_filters( 'wooco_admin_order_component_product_name', '<li>' . $item['component'] . ': ' . $item['qty'] . ' × ' . $item_product->get_name() . '</li>', $item ); -
apply_filters( 'wooco_allow_composite_product', false ); -
apply_filters( 'wooco_before_admin_order_itemmeta_component', '<div class="wooco-itemmeta-component">' . sprintf( WPCleverWooco_Helper::localization( 'cart_composite_s', esc_html__( 'Composite: %s', 'wpc-composite-products' ) ), $parent_product->get_name() . apply_filters( 'wooco_name_separator', ' → ' ) . $component ) . '</div>', $order_item_id, $order_item ); -
apply_filters( 'wooco_before_order_itemmeta_component', '<div class="wooco-itemmeta-component">' . sprintf( WPCleverWooco_Helper::localization( 'cart_composite_s', esc_html__( 'Composite: %s', 'wpc-composite-products' ) ), $parent_product->get_name() . apply_filters( 'wooco_name_separator', ' → ' ) . $component ) . '</div>', $order_item_id, $order_item ); -
wooco_cart_item_price
filterapply_filters( 'wooco_cart_item_price', wc_price( $cart_item['wooco_price'] ), $price, $cart_item ); -
wooco_cart_item_subtotal
filterapply_filters( 'wooco_cart_item_subtotal', wc_price( $cart_item['wooco_price'] * $cart_item['quantity'] ), $subtotal, $cart_item ); -
apply_filters( 'wooco_component_product_image', $component_product_obj->get_image(), $component_product_obj ); -
apply_filters( 'wooco_component_product_price', $_price, $cart_item ); -
apply_filters( 'wooco_gallery_include_product_images', false, $_product ); -
wooco_product_image
filterapply_filters( 'wooco_product_image', $img_src, $product, $qty, $price ); -
wooco_product_image_full
filterapply_filters( 'wooco_product_image_full', $img_full_src, $product, $qty, $price ); -
wooco_product_original
filterapply_filters( 'wooco_product_original', wc_get_product( $cart_item['variation_id'] ?: $cart_item['product_id'] ), $cart_item ); -
wooco_product_price_html
filterapply_filters( 'wooco_product_price_html', htmlentities( $price_html ), $product, $qty, $price ); -
wooco_product_regular_price
filterapply_filters( 'wooco_product_regular_price', wc_get_price_to_display( $product, [ 'price' => $product->get_regular_price() ] ), $product, $qty, $price ); -
apply_filters( 'wooco_product_short_description', $product->get_description(), $product ); -
wooco_qty_classes
filterapply_filters( 'wooco_qty_classes', [ 'input-text', 'wooco_component_product_qty_input', 'wooco_qty', 'qty', 'text' ], $component ); -
apply_filters( 'wooco_sold_individually_found_in_cart', true ); -
apply_filters( 'woocommerce_product_get_price', 0, $this ); -
apply_filters( 'woocommerce_product_thumbnails_columns', 4 ); -
wooco_add_to_cart_separately
filterapply_filters( 'wooco_add_to_cart_separately', false ); -
wooco_after_component
actiondo_action( 'wooco_after_component', $component, $order ); -
wooco_after_components
actiondo_action( 'wooco_after_components', $product ); -
wooco_after_selected
actiondo_action( 'wooco_after_selected', $product ); -
wooco_after_text
filterapply_filters( 'wooco_after_text', get_post_meta( $product_id, 'wooco_after_text', true ), $product_id ); -
wooco_after_wrap
actiondo_action( 'wooco_after_wrap', $product ); -
apply_filters( 'wooco_before_admin_order_itemmeta_composite', '<div class="wooco-itemmeta-composite">' . sprintf( WPCleverWooco_Helper::localization( 'cart_components_s', esc_html__( 'Components: %s', 'wpc-composite-products' ) ), $items_str ) . '</div>', $order_item_id, $order_item ); -
wooco_before_component
actiondo_action( 'wooco_before_component', $component, $order ); -
wooco_before_components
actiondo_action( 'wooco_before_components', $product ); -
apply_filters( 'wooco_before_order_itemmeta_composite', '<div class="wooco-itemmeta-composite">' . sprintf( WPCleverWooco_Helper::localization( 'cart_components_s', esc_html__( 'Components: %s', 'wpc-composite-products' ) ), $items_str ) . '</div>', $order_item_id, $order_item ); -
wooco_before_selected
actiondo_action( 'wooco_before_selected', $product ); -
wooco_before_text
filterapply_filters( 'wooco_before_text', get_post_meta( $product_id, 'wooco_before_text', true ), $product_id ); -
wooco_before_wrap
actiondo_action( 'wooco_before_wrap', $product ); -
wooco_cart_item_edit_link
filterapply_filters( 'wooco_cart_item_edit_link', $edit_link, $cart_item, $cart_item_key ); -
wooco_cart_item_edit_url
filterapply_filters( 'wooco_cart_item_edit_url', add_query_arg( [ 'edit' => base64_encode( $cart_item['wooco_ids'] ), 'key' => $cart_item_key ], $cart_item['data']->get_permalink() ), $cart_item, $cart_item_key ); -
wooco_cart_item_name
filterapply_filters( 'wooco_cart_item_name', $_name, $name, $item ); -
apply_filters( 'wooco_check_variation_attribute', true ); -
wooco_check_variation_tag
filterapply_filters( 'wooco_check_variation_tag', false ); -
apply_filters( 'wooco_component_checkbox_checked', $components_checked, $component ); -
apply_filters( 'wooco_component_checkbox_disabled', $component_required, $component ); -
wooco_component_class
filterapply_filters( 'wooco_component_class', $component_class, $component, $order ); -
wooco_component_default
filterapply_filters( 'wooco_component_default', $component_default, $component ); -
apply_filters( 'wooco_component_product_data_attributes', [ 'key' => $key, 'name' => $component['name'], 'id' => '-1', 'qty' => $component['qty'], 'm-min' => ! empty( $component['m_min'] ) ? (float) $component['m_min'] : '0', 'm-max' => ! empty( $component['m_max'] ) ? (float) $component['m_max'] : '10000', 'price' => '0', 'regular-price' => '0', 'price-html' => '', 'new-price' => $component_price, 'required' => $component_required ? 'yes' : 'no', 'cu... ); -
wooco_component_selector
filterapply_filters( 'wooco_component_selector', $component_selector, $component ); -
wooco_components_class
filterapply_filters( 'wooco_components_class', 'wooco_components wooco-components', $product ); -
apply_filters( 'wooco_components_data_attributes', [ 'percent' => $product->get_discount(), 'min' => get_post_meta( $product_id, 'wooco_qty_min', true ), 'max' => get_post_meta( $product_id, 'wooco_qty_max', true ), 'price' => wc_get_price_to_display( $product ), 'regular-price' => wc_get_price_to_display( $product, [ 'price' => $product->get_regular_price() ] ), 'pricing' => $product->get_pricing(), 'same' => get_post_meta( $product_id, 'wooco... ); -
apply_filters( 'wooco_composite_product_price', $price, $cart_item ); -
wooco_disable_nonce_check
filterapply_filters( 'wooco_disable_nonce_check', false, 'load_gallery' ); -
wooco_disable_security_check
filterapply_filters( 'wooco_disable_security_check', $check, $context ); -
apply_filters( 'wooco_display_composite_total', true, $item ); -
wooco_enable_cache
filterapply_filters( 'wooco_enable_cache', false, $context ); -
wooco_exclude_components
filterapply_filters( 'wooco_exclude_components', false ); -
wooco_exclude_unpurchasable
filterapply_filters( 'wooco_exclude_unpurchasable', WPCleverWooco_Helper::get_setting( 'exclude_unpurchasable', 'yes' ) === 'yes' ); -
wooco_gallery
filterapply_filters( 'wooco_gallery', $gallery_html, $image_ids, $main_product_id ); -
wooco_gallery_after
filterapply_filters( 'wooco_gallery_after', '', $image_ids, $main_product_id ); -
wooco_gallery_before
filterapply_filters( 'wooco_gallery_before', '', $image_ids, $main_product_id ); -
wooco_gallery_class
filterapply_filters( 'wooco_gallery_class', 'woocommerce-product-gallery woocommerce-product-gallery--wooco woocommerce-product-gallery--wooco-' . esc_attr( $key ) . ' woocommerce-product-gallery--wooco-' . absint( $main_product_id ) . ' woocommerce-product-gallery--with-images woocommerce-product-gallery--columns-' . esc_attr( apply_filters( 'woocommerce_product_thumbnails_columns', 4 ) ) . ' images', $image_ids, $main_product_id ); -
apply_filters( 'wooco_gallery_include_main_featured', false, $main_product_id ); -
apply_filters( 'wooco_gallery_include_main_images', false, $main_product_id ); -
apply_filters( 'wooco_gallery_include_variable_featured', false, $_product ); -
apply_filters( 'wooco_gallery_include_variable_images', false, $_product ); -
wooco_gallery_selector
filterapply_filters( 'wooco_gallery_selector', '.woocommerce-product-gallery' ); -
wooco_generate_key
filterapply_filters( 'wooco_generate_key', $key ); -
wooco_get_items
filterapply_filters( 'wooco_get_items', $arr, $ids ); -
wooco_get_product_id
filterapply_filters( 'wooco_get_product_id', $product_id, $id ); -
wooco_get_product_sku_or_id
filterapply_filters( 'wooco_get_product_sku_or_id', $product->get_sku( 'edit' ) ? '_sku_' . $product->get_sku( 'edit' ) : $product->get_id(), $product ); -
wooco_get_products
filterapply_filters( 'wooco_get_products', $products, $type, $val, $orderby, $order, $exclude, $default, $qty, $price, $custom_qty ); -
wooco_get_setting
filterapply_filters( 'wooco_get_setting', $value, $name, $default ); -
wooco_get_settings
filterapply_filters( 'wooco_get_settings', self::$settings ); -
wooco_get_variable_children
filterapply_filters( 'wooco_get_variable_children', $_product->get_children(), $_product ); -
wooco_ignore_backend_scripts
filterapply_filters( 'wooco_ignore_backend_scripts', false, $hook ); -
wooco_image_size
filterapply_filters( 'wooco_image_size', self::$image_size ); -
apply_filters( 'wooco_json_search_found_products', $products ); -
wooco_json_search_limit
filterapply_filters( 'wooco_json_search_limit', 30 ); -
wooco_key_characters
filterapply_filters( 'wooco_key_characters', 'abcdefghijklmnopqrstuvwxyz0123456789' ); -
wooco_key_length
filterapply_filters( 'wooco_key_length', 4 ); -
wooco_limit
filterapply_filters( 'wooco_limit', - 1 ); -
wooco_localization_{$key}
filterapply_filters( "wooco_localization_{$key}", $str ); -
wooco_main_gallery_selector
filterapply_filters( 'wooco_main_gallery_selector', '.woocommerce-product-gallery:not(.woocommerce-product-gallery--wooco)' ); -
wooco_option_none
filterapply_filters( 'wooco_option_none', $option_none, $component, $product ); -
wooco_option_none_data
filterapply_filters( 'wooco_option_none_data', [ 'id' => '-1', 'pid' => '-1', 'qty' => '0', 'price' => '', 'regular-price' => '', 'link' => '', 'price-html' => '', 'imagesrc' => esc_url( $option_none_image ), 'imagefull' => esc_url( $option_none_image_full ), 'availability' => '', 'description' => htmlentities( $option_none_description ), ], $component, $product ); -
apply_filters( 'wooco_option_none_description', $show_price ? wc_price( 0 ) : '', $component, $product ); -
wooco_option_none_img_full
filterapply_filters( 'wooco_option_none_img_full', $option_none_image_full, $component, $product ); -
wooco_option_none_img_src
filterapply_filters( 'wooco_option_none_img_src', $option_none_image, $component, $product ); -
wooco_order_item_subtotal
filterapply_filters( 'wooco_order_item_subtotal', wc_price( (float) $item['wooco_price'] * $item['quantity'] ), $subtotal, $item ); -
wooco_post_states
filterapply_filters( 'wooco_post_states', '<span class="wooco-state">' . sprintf( esc_html__( 'Composite (%d)', 'wpc-composite-products' ), $count ) . '</span>', $count, $product ); -
wooco_pre_get_products
filterapply_filters( 'wooco_pre_get_products', $_products, $type, $val_arr, $orderby, $order, $limit ); -
apply_filters( 'wooco_product_add_to_cart_text', $text, $this ); -
apply_filters( 'wooco_product_add_to_cart_url', apply_filters( 'woocommerce_product_add_to_cart_url', get_permalink( $this->id ), $this ), $this ); -
wooco_product_availability
filterapply_filters( 'wooco_product_availability', htmlentities( wc_get_stock_html( $product ) ), $product, $qty, $price ); -
wooco_product_data
filterapply_filters( 'wooco_product_data', [ 'id' => $product->get_id(), 'qty' => $qty, 'pid' => $product->is_type( 'variation' ) && $product->get_parent_id() ? $product->get_parent_id() : 0, 'purchasable' => apply_filters( 'wooco_product_purchasable', ( self::is_purchasable( $product, $qty ) ? 'yes' : 'no' ), $product, $qty, $price ), 'link' => apply_filters( 'wooco_product_link', ( ! $product->is_visible() && ! apply_filters( 'wooco_h... ); -
wooco_product_description
filterapply_filters( 'wooco_product_description', htmlentities( $desc ), $product, $qty, $price ); -
wooco_product_get_components
filterapply_filters( 'wooco_product_get_components', $this->_components, $this ); -
wooco_product_get_discount
filterapply_filters( 'wooco_product_get_discount', $discount, $this ); -
wooco_product_get_pricing
filterapply_filters( 'wooco_product_get_pricing', $this->_pricing, $this ); -
wooco_product_image_gallery
filterapply_filters( 'wooco_product_image_gallery', $img_gallery_src, $product, $qty, $price ); -
wooco_product_link
filterapply_filters( 'wooco_product_link', ( ! $product->is_visible() && ! apply_filters( 'wooco_hidden_product_link', false ) ? '' : $product->get_permalink() ), $product, $qty, $price ); -
wooco_product_name
filterapply_filters( 'wooco_product_name', $name, $product, $qty, $price ); -
wooco_product_new_price
filterapply_filters( 'wooco_product_new_price', $price, $product, $qty, $price ); -
apply_filters( 'wooco_product_original_price_html', $product->get_price_html(), $product ); -
wooco_product_price
filterapply_filters( 'wooco_product_price', $price_display, $product, $qty, $price ); -
wooco_product_purchasable
filterapply_filters( 'wooco_product_purchasable', ( self::is_purchasable( $product, $qty ) ? 'yes' : 'no' ), $product, $qty, $price ); -
wooco_product_settings
actiondo_action( 'wooco_product_settings', $product_id ); -
apply_filters( 'wooco_product_single_add_to_cart_text', $text, $this ); -
wooco_product_visible
filterapply_filters( 'wooco_product_visible', true, $_product ); -
wooco_selector
filterapply_filters( 'wooco_selector', WPCleverWooco_Helper::get_setting( 'selector', 'ddslick' ) ); -
wooco_shipping_fee_default
filterapply_filters( 'wooco_shipping_fee_default', 'both' ); -
apply_filters( 'wooco_sort_default_variations', 'default' ); -
wooco_use_wc_get_products
filterapply_filters( 'wooco_use_wc_get_products', true ); -
wooco_use_wp_get_posts
filterapply_filters( 'wooco_use_wp_get_posts', true ); -
wooco_vars
filterapply_filters( 'wooco_vars', [ 'wc_ajax_url' => WC_AJAX::get_endpoint( '%%endpoint%%' ), 'nonce' => wp_create_nonce( 'wooco_nonce' ), 'price_decimals' => wc_get_price_decimals(), 'price_format' => get_woocommerce_price_format(), 'price_thousand_separator' => wc_get_price_thousand_separator(), 'price_decimal_separator' => wc_get_price_decimal_separator(), 'currency_symbol' => get_woocommerce_currency_symbol(), 'trim_zeros' ... ); -
wooco_wc_get_products
filterapply_filters( 'wooco_wc_get_products', wc_get_products( $args ), $type, $val_arr, $orderby, $order, $limit ); -
wooco_wc_get_products_args
filterapply_filters( 'wooco_wc_get_products_args', $args ); -
wooco_wp_get_posts
filterapply_filters( 'wooco_wp_get_posts', get_posts( $args ), $type, $val_arr, $orderby, $order, $limit ); -
wooco_wp_get_posts_args
filterapply_filters( 'wooco_wp_get_posts_args', [ 'is_wooco' => true, 'fields' => 'ids', 'post_type' => [ 'product', 'product_variation' ], 'post_status' => [ 'publish' ], 'include' => $val_arr, 'orderby' => $orderby, 'order' => $order, 'posts_per_page' => $limit ] ); -
wooco_wrap_class
filterapply_filters( 'wooco_wrap_class', 'wooco_wrap wooco-wrap wooco-wrap-' . $product_id, $product ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $item_id, $qty * $item_qty ); -
woocommerce_price_trim_zeros
filterapply_filters( 'woocommerce_price_trim_zeros', false ); -
apply_filters( 'woocommerce_product_add_to_cart_url', get_permalink( $this->id ), $this ); -
apply_filters( 'woocommerce_single_product_image_thumbnail_html', wc_get_gallery_image_html( $id ), $id );
Generated from WPC Composite Products 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: