Smart Variations Images & Swatches for WooCommerce 5.3.7 has 16 actions and 27 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 Smart Variations Images & Swatches for WooCommerce fires an action
add_action( 'wcsvfs_product_attribute_field', function( $attribute_type, $arg2, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value Smart Variations Images & Swatches for WooCommerce is about to use
add_filter( 'svi_swatch_import_sources', function( $value ) {
// Change $value here.
return $value;
}, 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.
Changes by version
5.3.2 → 5.3.6 · Nov 17, 2026 · 3 added, 0 removed
Added
- filter
woocommerce_layered_nav_count - filter
svi_swatch_import_batch_size - filter
svi_swatch_import_sources
5.3.0 → 5.3.2 · Nov 17, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
All hooks
-
svi_swatch_import_sources
filter/** * Register an extra swatch import source. */ apply_filters( 'svi_swatch_import_sources', [] ); -
apply_filters( 'woocommerce_variation_option_name', $term->name ); -
do_action( 'wcsvfs_product_attribute_field', $attr->attribute_type, '', 'add' ); -
apply_filters( 'woocommerce_gallery_full_size', apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' ) ); -
apply_filters( 'woocommerce_gallery_image_size', ( $this->options->main_imagesize ?: $full_size ) ); -
apply_filters( 'woocommerce_gallery_thumbnail_size', apply_filters( 'woocommerce_thumbnail_size', 'shop_thumbnail' ) ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $id, 'post_product' ); -
apply_filters( 'wpml_get_element_translations', null, $trid, 'post_product' ); -
apply_filters( "{$this->option_group}_settings_validate", $input ); -
do_action( 'flatsome_product_image_tools_top' ); -
flatsome_sale_flash
actiondo_action( 'flatsome_sale_flash' ); -
apply_filters( 'single_product_small_thumbnail_size', $this->options->thumb_imagesize ); -
svi_before_images
actiondo_action( 'svi_before_images' ); -
svi_fs_loaded
actiondo_action( 'svi_fs_loaded' ); -
svi_image
filterapply_filters( 'svi_image', $img_data ); -
svi_product_id
filterapply_filters( 'svi_product_id', $smart_variations_images_product->get_id() ); -
svi_swatch_import_batch_size
filterapply_filters( 'svi_swatch_import_batch_size', 50 ); -
wcsvfs_swatch_html
filterapply_filters( 'wcsvfs_swatch_html', '', $term, $attr->attribute_name, $attr->attribute_type, $args ); -
apply_filters( 'woocommerce_product_attribute_term_name', $term->name, $term ); -
apply_filters( 'woocommerce_product_attribute_terms', array('taxonomy' => $taxonomy_name, 'orderby' => 'name', 'hide_empty' => false) ); -
apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' ); -
apply_filters( 'woocommerce_single_product_image_gallery_classes', array( 'gallery-svi', 'woocommerce-product-gallery', 'woocommerce-product-gallery--' . ($smart_variations_images_product->get_image_id() ? 'with-images' : 'without-images'), $smart_variations_images_variable, 'images', ) ); -
woocommerce_thumbnail_size
filterapply_filters( 'woocommerce_thumbnail_size', 'shop_thumbnail' ); -
do_action( "wpsfsvi_after_field_{$this->option_group}" ); -
do_action( "wpsfsvi_after_field_{$this->option_group}_{$args['id']}" ); -
do_action( "wpsfsvi_after_settings_{$this->option_group}" ); -
do_action( "wpsfsvi_after_tab_links_{$this->option_group}" ); -
do_action( "wpsfsvi_after_title_{$this->option_group}" ); -
do_action( "wpsfsvi_before_field_{$this->option_group}" ); -
do_action( "wpsfsvi_before_field_{$this->option_group}_{$args['id']}" ); -
do_action( "wpsfsvi_before_settings_{$this->option_group}" ); -
do_action( "wpsfsvi_before_settings_fields_{$this->option_group}" ); -
do_action( "wpsfsvi_before_tab_links_{$this->option_group}" ); -
apply_filters( "wpsfsvi_defaults_{$this->option_group}", $this->setting_defaults ); -
do_action( "wpsfsvi_do_settings_sections_{$this->option_group}" ); -
apply_filters( "wpsfsvi_register_settings_{$this->option_group}", array() ); -
apply_filters( "wpsfsvi_register_settings_clean_{$this->option_group}", apply_filters('wpsfsvi_register_settings_' . $this->option_group, array()) ); -
apply_filters( "wpsfsvi_show_save_changes_button_{$this->option_group}", true ); -
apply_filters( "wpsfsvi_show_tab_links_{$this->option_group}", true ); -
apply_filters( "wpsfsvi_title_{$this->option_group}", $this->settings_page['title'] );
Generated from Smart Variations Images & Swatches 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: