Smart Variations Images & Swatches for WooCommerce icon
eCommerce & WooCommerce

Smart Variations Images & Swatches for WooCommerce hooks reference

  • By David Rosendo
  • v5.3.7 New
  • Updated

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.

functions.phpyour child theme
// 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

5.3.0 → 5.3.2 · Nov 17, 2026 · 0 added, 0 removed

No hooks were added or removed in this release.

All hooks

  • includes/addons/swatches/importer/class-svi-swatch-import-runner.php line 53
    /**
     * Register an extra swatch import source.
     */
    apply_filters( 'svi_swatch_import_sources', [] );
  • admin/class-smart-variations-images-admin.php line 238 · used in 7 places
    apply_filters( 'woocommerce_variation_option_name', $term->name );
  • admin/class-wcsvfs-admin.php line 386 · used in 2 places
    do_action( 'wcsvfs_product_attribute_field', $attr->attribute_type, '', 'add' );
  • public/class-smart-variations-images-public.php line 2040 · used in 2 places
    apply_filters( 'wpml_element_trid', null, $id, 'post_product' );
  • public/class-smart-variations-images-public.php line 2047 · used in 2 places
    apply_filters( 'wpml_get_element_translations', null, $trid, 'post_product' );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 317
    apply_filters( "{$this->option_group}_settings_validate", $input );
  • public/partials/smart-variations-images-public-display.php line 138
    do_action( 'flatsome_product_image_tools_top' );
  • public/partials/smart-variations-images-public-display.php line 134
    do_action( 'flatsome_sale_flash' );
  • public/class-smart-variations-images-public.php line 1808
    apply_filters( 'single_product_small_thumbnail_size', $this->options->thumb_imagesize );
  • public/partials/smart-variations-images-public-display.php line 131
    do_action( 'svi_before_images' );
  • svi_fs_loaded

    action
    svi.php line 98
    do_action( 'svi_fs_loaded' );
  • svi_image

    filter
    public/class-smart-variations-images-public.php line 1424
    apply_filters( 'svi_image', $img_data );
  • public/partials/smart-variations-images-public-display.php line 36
    apply_filters( 'svi_product_id', $smart_variations_images_product->get_id() );
  • includes/addons/swatches/importer/class-svi-swatch-import-admin.php line 445
    apply_filters( 'svi_swatch_import_batch_size', 50 );
  • public/class-wcsvfs-public.php line 151
    apply_filters( 'wcsvfs_swatch_html', '', $term, $attr->attribute_name, $attr->attribute_type, $args );
  • includes/addons/swatches/class-svi-swatches-frontend.php line 270
    apply_filters( 'woocommerce_layered_nav_count', '<span class="count">(' . absint($count) . ')</span>', $count, $term );
  • admin/class-wcsvfs-admin.php line 182
    apply_filters( 'woocommerce_product_attribute_term_name', $term->name, $term );
  • admin/class-wcsvfs-admin.php line 178
    apply_filters( 'woocommerce_product_attribute_terms', array('taxonomy' => $taxonomy_name, 'orderby' => 'name', 'hide_empty' => false) );
  • public/class-smart-variations-images-public.php line 1568
    apply_filters( 'woocommerce_product_thumbnails_large_size', 'full' );
  • public/class-smart-variations-images-public.php line 1570
    apply_filters( 'woocommerce_thumbnail_size', 'shop_thumbnail' );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 501
    do_action( "wpsfsvi_after_field_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 502
    do_action( "wpsfsvi_after_field_{$this->option_group}_{$args['id']}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 1111
    do_action( "wpsfsvi_after_settings_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 256
    do_action( "wpsfsvi_after_title_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 496
    do_action( "wpsfsvi_before_field_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 497
    do_action( "wpsfsvi_before_field_{$this->option_group}_{$args['id']}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 1096
    do_action( "wpsfsvi_before_settings_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 1099
    do_action( "wpsfsvi_before_settings_fields_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 484
    apply_filters( "wpsfsvi_defaults_{$this->option_group}", $this->setting_defaults );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 1102
    do_action( "wpsfsvi_do_settings_sections_{$this->option_group}" );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 223
    apply_filters( "wpsfsvi_menu_icon_url_{$this->option_group}", '' );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 224
    apply_filters( "wpsfsvi_menu_position_{$this->option_group}", null );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 150
    apply_filters( "wpsfsvi_register_settings_{$this->option_group}", array() );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 150
    apply_filters( "wpsfsvi_register_settings_clean_{$this->option_group}", apply_filters('wpsfsvi_register_settings_' . $this->option_group, array()) );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 1104
    apply_filters( "wpsfsvi_show_save_changes_button_{$this->option_group}", true );
  • includes/library/wp-settings-framework/wp-settings-framework.php line 255
    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: