PVT 1.9.4 has 24 actions and 72 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 PVT fires an action
add_action( 'pvtfw_after_quantity_field_markup', function( $args ) {
// Your code runs here.
}, 10, 1 );
// Change a value PVT is about to use
add_filter( 'woocommerce_ajax_variation_threshold', function( $value, $product ) {
// Change $value here.
return $value;
}, 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
-
/** * Get Available variations? (Ignore this hook. It is a standard WooCommerce * hook.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_ajax_variation_threshold', 30, $product ); -
/** * { Checking multi site also } */ apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
/** * Hook: pvtfw_add_to_cart_btn_classes Hook: pvtfw_cart_btn_text */ apply_filters( 'pvtfw_add_to_cart_btn_classes', wp_is_block_theme() ? 'wp-block-button__link wp-element-button wc-block-components-product-button__button pvtfw_variant_table_cart_btn' : 'pvtfw_variant_table_cart_btn button alt' ); -
/** * ============================================================================ * = Hook to add anything after the quantity field markup */ do_action( 'pvtfw_after_quantity_field_markup', $args ); -
/** * Hook: pvtfw_table_body. */ do_action( 'pvtfw_table_body', $atts ); -
/** * Hook: pvtfw_table_header. */ do_action( 'pvtfw_table_header', $atts ); -
/** * { Display dynamic text (if inserted by user) or hard coded text for * Available Options button text } */ apply_filters( 'pvtfw_available_options_btn_text', !$available_btn_text ? __('Available options', 'product-variant-table-for-woocommerce') : $available_btn_text ); -
/** * ============================================================================ * = woocommerce_quantity_input($args) removed added pvtfw_basic_input hook */ do_action( 'pvtfw_basic_qty_input', $args ); -
/** * Hook: pvtfw_add_to_cart_btn_classes Hook: pvtfw_cart_btn_text */ apply_filters( 'pvtfw_cart_btn_text', $args['text'] ); -
/** * Options Array */ apply_filters( 'pvtfw_options_array', $latest, $columns, $variations, $qty_layout, $product_id, $cart_url, $product_url, $text, $single_variation_data ); -
/** * ============================================================================ * = woocommerce_quantity_input($args) removed added pvtfw_plus_minus_qty_input * hook */ do_action( 'pvtfw_plus_minus_qty_input', $args ); -
/** * Check compatibility.php file. */ apply_filters( 'pvtfw_print_cart_btn', $value ); -
/** * Check compatibility.php file to edit +/- button code. */ apply_filters( 'pvtfw_print_qty_field', $value ); -
/** * Hook: pvtfw_pro_tbody_td. */ do_action( 'pvtfw_pro_tbody_td', $key1 ); -
/** * Hook: pvtfw_pro_thead_th. */ do_action( 'pvtfw_pro_thead_th' ); -
/** * Hook: pvtfw_add_to_cart_btn_classes Hook: pvtfw_stock_btn_text */ apply_filters( 'pvtfw_stock_btn_text', $stock_info ); -
/** * (Ignore this hook. It is a standard WooCommerce hook.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ do_action( 'woocommerce_ajax_added_to_cart', $product_id ); -
/** * (Ignore this hook. It is a standard WooCommerce hook.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) ); -
/** * (Ignore this hook. It is a standard WooCommerce hook.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_out_of_stock_message', __( 'This product is currently out of stock and unavailable.', 'product-variant-table-for-woocommerce' ) ); -
/** * (Ignore these hooks. It is a standard WooCommerce hooks.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_quantity_input_classes', array( 'input-text', 'qty', 'text' ), $single_variation ); -
/** * (Ignore these hooks. It is a standard WooCommerce hooks.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_quantity_input_max', -1, $single_variation ); -
/** * (Ignore these hooks. It is a standard WooCommerce hooks.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_quantity_input_min', 0, $single_variation ); -
/** * (Ignore these hooks. It is a standard WooCommerce hooks.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'woocommerce_quantity_input_step', 1, $single_variation ); -
/** * (Ignore this hook. It is a standard WPML hook.) phpcs:disable * WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound */ apply_filters( 'wpml_translate_single_string', $value, $domain, $option_name ); -
apply_filters( 'pvtfw_disable_to_apply', false ); -
do_action( 'pvtfw_after_table_block', $product ); -
do_action( 'pvtfw_before_table_block', $product ); -
apply_filters( 'pvtfw_table_container_class', $classes, $scrollableTableX ); -
apply_filters( 'pvtfw_variant_table_varaints_heading', __('Available Options', 'product-variant-table-for-woocommerce') ); -
do_action( 'pvtfw_variation_table_after', $product ); -
do_action( 'pvtfw_variation_table_before', $product ); -
apply_filters( 'pvtfw_action_th_title', ' ' ); -
apply_filters( 'pvtfw_action_title', $key1_title ); -
apply_filters( 'pvtfw_added_cart_filter', $script ); -
do_action( 'pvtfw_admin_after_element' ); -
do_action( 'pvtfw_admin_after_filter' ); -
do_action( 'pvtfw_admin_after_horizontal_scrollbar' ); -
do_action( 'pvtfw_admin_after_main' ); -
do_action( 'pvtfw_admin_after_table_customization' ); -
do_action( 'pvtfw_admin_before_filter' ); -
do_action( 'pvtfw_admin_before_scroll_to_top' ); -
do_action( 'pvtfw_admin_element' ); -
do_action( 'pvtfw_admin_main' ); -
do_action( 'pvtfw_admin_section' ); -
apply_filters( 'pvtfw_admin_setting_tab', $tab, $curTab ); -
apply_filters( 'pvtfw_ajax_cart_prepare_quantity', $prepare_quantity ); -
apply_filters( 'pvtfw_all_options', $options ); -
apply_filters( 'pvtfw_allowed_tags', array( 'input' => array( 'class' => array(), 'type' => array(), 'name' => array(), 'value' => array(), ), 'td' => array( 'class' => array(), ), 'div' => array(), ) ); -
apply_filters( 'pvtfw_attributes_title', $key1_title ); -
apply_filters( 'pvtfw_availability_html_title', $key1_title ); -
apply_filters( 'pvtfw_available_btn_product_id', '', $product ); -
apply_filters( 'pvtfw_cart_btn_after_backorder_text', $args['availability_html'] ); -
apply_filters( 'pvtfw_cart_redirect_url', site_url('/cart') ); -
apply_filters( 'pvtfw_columns_labels', $default_column_lables ); -
apply_filters( 'pvtfw_custom_attribute_terms', "<td data-title='{$taxonomy_name}' data-attrname='{$data_attrname}' data-slug='{$val}'>{$val}</td>", $val, $taxonomy_name ); -
apply_filters( 'pvtfw_default_columns', array( 'image_link' => "on", 'sku' => "off", 'variation_description' => "off", 'attributes' => "on", 'dimensions_html' => "off", 'weight_html' => "off", 'availability_html' => "on", 'price_html' => "on", 'quantity' => "on", 'action' => "on", ) ); -
apply_filters( 'pvtfw_dimensions_html_title', $key1_title ); -
apply_filters( 'pvtfw_disable_shortcode_to_apply', false ); -
apply_filters( 'pvtfw_disable_table_markup_to_apply', false ); -
apply_filters( 'pvtfw_disable_to_remove_add_to_cart', false ); -
apply_filters( 'pvtfw_disable_to_show_available_option', false ); -
apply_filters( 'pvtfw_global_attribute_terms', "<td data-title='{$taxonomy_name}' data-attrname='{$data_attrname}' data-slug='{$val}'>{$term->name}</td>", $term, $taxonomy_name ); -
apply_filters( 'pvtfw_image_link_title', $key1_title ); -
apply_filters( 'pvtfw_num_of_decimal', 2, $get_woo_num_of_decimal ); -
do_action( 'pvtfw_oos_msg_instead_qty_field', $args ); -
apply_filters( 'pvtfw_price_html', $price_html, $single_variation ); -
apply_filters( 'pvtfw_price_html_title', $key1_title ); -
apply_filters( 'pvtfw_qtyargs_input_value', $single_variation->get_min_purchase_quantity(), $single_variation ); -
apply_filters( 'pvtfw_qtyargs_max_value', $single_variation->get_max_purchase_quantity(), $single_variation ); -
apply_filters( 'pvtfw_qtyargs_min_value', $single_variation->get_min_purchase_quantity(), $single_variation ); -
apply_filters( 'pvtfw_quantity_title', $key1_title ); -
apply_filters( 'pvtfw_row_cart_btn_is', $cart_button, $args['product_id'], $args['cart_url'], $args['product_url'], $args['variant_id'], $args['product_name'], $args['text'] ); -
apply_filters( 'pvtfw_row_cart_btn_oos', $cart_button, $args['product_id'], $args['cart_url'], $args['product_url'], $args['variant_id'], $args['product_name'], $stock_info ); -
apply_filters( 'pvtfw_skip_some_variation', false, $single_variation ); -
apply_filters( 'pvtfw_sku_title', $key1_title ); -
apply_filters( 'pvtfw_subtotal_title', "<th class='{$key} sortable asc'>".__("SubTotal", "product-variant-table-for-woocommerce")."{$title_arrow}</th>" ); -
apply_filters( 'pvtfw_subtotal_with_currency_symbol', sprintf( "<td><p class='pvt-subtotal-wrapper'>%s %s</p></td>", get_woocommerce_currency_symbol(), $price_span ), get_woocommerce_currency_symbol(), $price_span ); -
apply_filters( 'pvtfw_table_attributes', $single_variation->get_variation_attributes(false), $single_variation ); -
apply_filters( 'pvtfw_table_availability_html', wc_get_stock_html( $single_variation ), $single_variation ); -
apply_filters( 'pvtfw_table_dimensions_html', wc_format_dimensions($single_variation->get_dimensions(false)), $single_variation ); -
apply_filters( 'pvtfw_table_sku', esc_attr( $single_variation->get_sku() ), $single_variation ); -
apply_filters( 'pvtfw_table_thumbnail', wp_kses_post( $thumbnail ), $single_variation ); -
apply_filters( 'pvtfw_table_variation_description', wp_kses_post( $single_variation->get_description() ), $single_variation ); -
apply_filters( 'pvtfw_table_weight_html', wc_format_weight($single_variation->get_weight(false)), $single_variation ); -
apply_filters( 'pvtfw_thead_arrows', '<span class="arrow"></span>' ); -
apply_filters( 'pvtfw_variation_description_title', $key1_title ); -
do_action( 'pvtfw_variation_table_heading_after' ); -
apply_filters( 'pvtfw_version_title', sprintf( '<small class="wpx-version-title">%s</small>', defined( 'PVTFW_VARIANT_TABLE_VERSION' ) ? PVTFW_VARIANT_TABLE_VERSION : '' ) ); -
apply_filters( 'pvtfw_weight_html_title', $key1_title ); -
apply_filters( 'pvtfw_woocommerce_add_to_cart_product_id', isset( $_POST['product_id'] ) ? absint($_POST['product_id']) : '' ); -
apply_filters( 'pvtfw_woocommerce_add_to_cart_validation', true, $product_id, $quantity ); -
apply_filters( 'pvtfw_woocommerce_quantity_input_args', $options_qty_layout, $qty_layout, $single_variation ); -
apply_filters( 'woocommerce_quantity_input_autocomplete', 'off', $single_variation ); -
apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ); -
apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ); -
apply_filters( 'woocommerce_quantity_input_placeholder', '', $single_variation );
Generated from PVT'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: