Visual Builder 2.3.5 has 46 actions and 75 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 Visual Builder fires an action
add_action( 'woocommerce_after_add_to_cart_button', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Visual Builder is about to use
add_filter( 'vb_element_css_element', function( $args ) {
// Change $args here.
return $args;
}, 10, 1 );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( "vb_element_css_{$id}", $args ); -
apply_filters( 'vb_element_css_element', $args ); -
apply_filters( 'vb_social_default', array() ); -
apply_filters( 'vb_admin', array() ); -
do_action( 'woocommerce_after_add_to_cart_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ); -
do_action( 'woocommerce_after_add_to_cart_quantity' ); -
do_action( 'woocommerce_before_add_to_cart_quantity' ); -
apply_filters( 'woocommerce_quantity_input_max', $grouped_product_child->get_max_purchase_quantity(), $grouped_product_child ); -
apply_filters( 'woocommerce_quantity_input_min', 0, $grouped_product_child ); -
apply_filters( "vb_element_style_{$id}", $args ); -
do_action( 'vb_preview_main_element' ); -
apply_filters( 'woocommerce_short_description', $post->post_excerpt ); -
apply_filters( 'comments_array', $comments_flat, $post->ID ); -
apply_filters( 'comments_template_query_args', $comment_args ); -
apply_filters( 'comments_template_top_level_query_args', $top_level_args ); -
do_action( 'nc_single_product_content_after' ); -
do_action( 'nc_single_product_content_before' ); -
apply_filters( 'the_title', $item->title, $item->ID ); -
apply_filters( 'vb_admin_default', $theme ); -
apply_filters( 'vb_admin_default_core', $core ); -
apply_filters( 'vb_admin_reset', $theme ); -
apply_filters( 'vb_admin_reset_core', $core ); -
do_action( 'vb_content_after' ); -
do_action( 'vb_content_before' ); -
apply_filters( 'vb_control_options', $control ); -
apply_filters( "vb_element_{$id}", $args ); -
apply_filters( "vb_element_class_{$id}", $args ); -
apply_filters( 'vb_element_class_element', $args ); -
apply_filters( 'vb_element_data', $global_data ); -
apply_filters( 'vb_element_default', $action ); -
apply_filters( 'vb_element_global', $global ); -
apply_filters( "vb_element_global_{$post_type}", $global ); -
apply_filters( 'vb_element_options', $global ); -
apply_filters( "vb_element_options_{$post_type}", $global ); -
apply_filters( "vb_element_preview_{$id}", $args ); -
apply_filters( "vb_element_save_{$id}", $args ); -
apply_filters( 'vb_get_price_html', $price ); -
apply_filters( 'vb_header_default', $action ); -
apply_filters( 'vb_icon_css', $icon_css ); -
apply_filters( 'vb_icon_element', $element ); -
apply_filters( 'vb_icon_recommended', $recommended ); -
apply_filters( "vb_library_{$template_id}{$builder_type}", $id ); -
do_action( 'vb_main_after' ); -
do_action( 'vb_main_before' ); -
apply_filters( 'vb_metabox', $metabox ); -
do_action( 'vb_preview_element' ); -
do_action( 'vb_section_after' ); -
do_action( 'vb_section_before' ); -
do_action( 'vb_single_blog_content_after' ); -
do_action( 'vb_single_blog_content_before' ); -
apply_filters( 'vb_translate_change', $action_change ); -
apply_filters( 'vb_translate_default', $action ); -
apply_filters( 'vb_translation_default', 'array' ); -
do_action( 'vb_wrapper_after' ); -
do_action( 'vb_wrapper_before' ); -
apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ); -
do_action( "woocommerce_{$product->get_type()}_add_to_cart" ); -
do_action( 'woocommerce_after_quantity_input_field' ); -
do_action( 'woocommerce_after_single_variation' ); -
do_action( 'woocommerce_after_variations_form' ); -
do_action( 'woocommerce_after_variations_table' ); -
apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product ); -
do_action( 'woocommerce_archive_description' ); -
apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); -
do_action( 'woocommerce_before_mini_cart' ); -
do_action( 'woocommerce_before_mini_cart_contents' ); -
do_action( 'woocommerce_before_quantity_input_field' ); -
do_action( 'woocommerce_before_single_variation' ); -
do_action( 'woocommerce_before_variations_form' ); -
apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">×</a>', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), '', esc_attr( $product_id ), esc_attr( $cart_item_key ), esc_attr( $_product->get_sku() ) ), $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_display_product_attributes', $product_attributes, $product ); -
apply_filters( 'woocommerce_grouped_product_columns', array( 'quantity', 'label', 'price', ), $product ); -
do_action( 'woocommerce_grouped_product_list_after', $grouped_product_columns, $quantites_required, $product ); -
do_action( "woocommerce_grouped_product_list_after_{$column_id}", $grouped_product_child ); -
do_action( 'woocommerce_grouped_product_list_before', $grouped_product_columns, $quantites_required, $product ); -
do_action( "woocommerce_grouped_product_list_before_{$column_id}", $grouped_product_child ); -
apply_filters( "woocommerce_grouped_product_list_column_{$column_id}", $value, $grouped_product_child ); -
apply_filters( 'woocommerce_grouped_product_list_link', $grouped_product_child->get_permalink(), $grouped_product_child->get_id() ); -
apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product ); -
do_action( 'woocommerce_mini_cart_contents' ); -
apply_filters( 'woocommerce_mini_cart_item_class', 'mini_cart_item', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_out_of_stock_message', __( 'This product is currently out of stock and unavailable.', 'woocommerce' ) ); -
apply_filters( 'woocommerce_pagination_args', array( 'base' => $base, 'format' => $format, 'add_args' => false, 'current' => max( 1, $current ), 'total' => $total, 'prev_text' => is_rtl() ? '→' : '<', 'next_text' => is_rtl() ? '←' : '>', 'type' => '', 'end_size' => 3, 'mid_size' => 3, ) ); -
apply_filters( "woocommerce_product_{$keys}_tab_title", vb_number_replace($product_tab['title']), $keys ); -
woocommerce_product_additional_information
action Used by 20 plugins β Copy link Customise this hookdo_action( 'woocommerce_product_additional_information', $product ); -
woocommerce_product_review_comment_form_args
filter Used by 17 plugins β Copy link Customise this hookapply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ); -
apply_filters( 'woocommerce_product_review_list_args', array( 'callback' => function( $comment, $args, $depth ) use ( $data ) { vb_woocommerce_comments( $comment, $args, $depth, $data ); }) ); -
apply_filters( 'woocommerce_product_tabs', array() ); -
apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#" aria-label="' . esc_attr__( 'Clear options', 'woocommerce' ) . '">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' ); -
do_action( 'woocommerce_review_after_comment_meta', $comment ); -
do_action( 'woocommerce_review_after_comment_text', $comment ); -
do_action( 'woocommerce_review_before', $comment ); -
do_action( 'woocommerce_review_before_comment_meta', $comment ); -
do_action( 'woocommerce_review_comment_text', $comment ); -
do_action( 'woocommerce_review_meta', $comment ); -
apply_filters( 'woocommerce_sale_flash', '<div class="vb-txt-product-sale '.vb_product_badge_class($post_data,'sale',$single).'">' .$sale . '</div>', $post, $product ); -
apply_filters( 'woocommerce_show_page_title', true ); -
do_action( 'woocommerce_single_variation' ); -
apply_filters( 'woocommerce_widget_cart_item_quantity', sprintf( '%s %s', '<span class="vb-txt-quantity">'.vb_number_replace($cart_item['quantity']).' ×Β </span>', '<div class="vb-txt-price">'.$product_price.'</div>' ), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ); -
woocommerce_widget_shopping_cart_after_buttons
action Used by 26 plugins β Copy link Customise this hookdo_action( 'woocommerce_widget_shopping_cart_after_buttons' ); -
woocommerce_widget_shopping_cart_before_buttons
action Used by 28 plugins β Copy link Customise this hookdo_action( 'woocommerce_widget_shopping_cart_before_buttons' );
Generated from Visual Builder'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: