Choosly icon
eCommerce & WooCommerce

Choosly hooks reference

  • By VillaTheme
  • v1.1.21 New
  • Updated

Choosly 1.1.21 has 1 actions and 14 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 Choosly fires an action
add_action( 'villatheme_support_product-variations-swatches-for-woocommerce', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Choosly is about to use
add_filter( 'woocommerce_product_attribute_term_name', function( $name, $selected_term ) {
	// Change $name here.
	return $name;
}, 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

  • includes/admin/custom-attribute.php line 51 · used in 2 places
    /**
     * Filter the selected attribute term name.
     */
    apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term );
  • includes/frontend/frontend.php line 99 · used in 14 places
    apply_filters( 'woocommerce_variation_option_name', $term->name, $term, $attribute, $product );
  • includes/frontend/frontend.php line 344 · used in 12 places
    apply_filters( 'viwpvs_variation_option_tooltip', $term_name, $term, $attribute, $variations, $product );
  • plugin_locale

    filter
    includes/admin/admin.php line 31
    apply_filters( 'plugin_locale', determine_locale(), 'product-variations-swatches-for-woocommerce' );
  • includes/data.php line 309
    apply_filters( "vi_woo_product_variation_swatches_filter_color-{$color}", $this->default_color[ $color ] );
  • includes/data.php line 249
    apply_filters( 'vi_woo_product_variation_swatches_params', wp_parse_args( $vi_wpvs_settings, $this->default ) );
  • includes/data.php line 272
    apply_filters( "vi_woo_product_variation_swatches_params_default-{$name}", $this->default[ $name ] );
  • includes/data.php line 261
    apply_filters( "vi_woo_product_variation_swatches_params-{$name}", $this->params[ $name ] );
  • includes/support.php line 974
    apply_filters( 'villatheme_check_requires', wp_parse_args( $args, [ 'plugin_name' => '', 'php_version' => '', 'wp_version' => '', 'wc_version' => '', 'require_plugins' => [], ] ) );
  • includes/support.php line 535
    apply_filters( 'villatheme_form_ads_data', ob_get_clean() );
  • includes/admin/settings.php line 1227
    do_action( 'villatheme_support_product-variations-swatches-for-woocommerce' );
  • includes/frontend/frontend.php line 332
    apply_filters( 'viwpvs_frontend_get_product_terms', $terms, $product, $terms );
  • includes/admin/settings.php line 1289
    apply_filters( 'viwpvs_import_settings_max_bytes', 3 * 1024 * 1024 );
  • includes/frontend/frontend.php line 844
    apply_filters( 'viwpvs_should_enqueue_frontend', $should_enqueue );
  • includes/admin/custom-attribute.php line 30
    apply_filters( 'woocommerce_admin_terms_metabox_datalimit', 50 );

Generated from Choosly'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: