WCBoost icon
eCommerce & WooCommerce

WCBoost hooks reference

  • By WCBoost
  • v1.1.5
  • Updated

WCBoost 1.1.5 has 3 actions and 23 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 WCBoost fires an action
add_action( 'wcboost_variation_swatches_enqueue_scripts', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value WCBoost is about to use
add_filter( 'wcboost_variation_swatches_term_meta', function( $value, $term_id, $key, $type ) {
	// Change $value here.
	return $value;
}, 10, 4 );

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/term-meta.php line 434
    /**
     * Filter the swatche term meta value.
     */
    apply_filters( 'wcboost_variation_swatches_term_meta', $value, $term_id, $key, $type );
  • includes/admin/term-meta.php line 416
    /**
     * This filter is used to translate term meta data.
     */
    apply_filters( 'wcboost_variation_swatches_translate_term_meta', $value, $term_id, $key, $type );
  • includes/swatches.php line 281
    apply_filters( "wcboost_variation_swatches_{$type}_html", $html, $args, $data, $term );
  • includes/swatches.php line 391
    apply_filters( 'wcboost_variation_swatches_attribute_swatches_data', $data, $term, $args );
  • includes/admin/term-meta.php line 334
    apply_filters( 'wcboost_variation_swatches_attribute_thumb_column_content', $html, $value, $attr, $term_id );
  • includes/swatches.php line 177
    apply_filters( 'wcboost_variation_swatches_classes', $classes, $swatches_args, $attribute_name, $product );
  • includes/swatches.php line 99
    apply_filters( 'wcboost_variation_swatches_css', $css );
  • includes/swatches.php line 86
    do_action( 'wcboost_variation_swatches_enqueue_scripts' );
  • includes/admin/term-meta.php line 553
    apply_filters( 'wcboost_variation_swatches_field_html', $html, $args );
  • includes/swatches.php line 183
    apply_filters( 'wcboost_variation_swatches_html', $html, $args );
  • includes/plugin.php line 81
    do_action( 'wcboost_variation_swatches_init' );
  • includes/admin/settings.php line 196
    apply_filters( 'wcboost_variation_swatches_invalid_display_options', [ 'hide' => esc_html__( 'Hide', 'wcboost-variation-swatches' ), 'blur' => esc_html__( 'Blur', 'wcboost-variation-swatches' ), 'cross' => esc_html__( 'Cross out', 'wcboost-variation-swatches' ), 'line' => esc_html__( 'Line through', 'wcboost-variation-swatches' ), 'slash' => esc_html__( 'Slash', 'wcboost-variation-swatches' ), 'blur_cross' => esc_html__( 'Blur & Cross out', 'wcboost-variation-sw... );
  • includes/swatches.php line 336
    apply_filters( 'wcboost_variation_swatches_item_args', $swatches_args, $attribute, $product_id );
  • includes/swatches.php line 78
    apply_filters( 'wcboost_variation_swatches_js_params', [ 'show_selected_label' => wc_string_to_bool( Helper::get_settings( 'show_selected_label' ) ), ] );
  • includes/admin/product-data.php line 372
    apply_filters( 'wcboost_variation_swatches_process_product_swatches_meta', $data, $post_id );
  • includes/admin/product-data.php line 401
    apply_filters( 'wcboost_variation_swatches_product_meta', $meta, $post_id );
  • includes/admin/product-data.php line 280
    apply_filters( 'wcboost_variation_swatches_product_meta_attribute_swatches_args', $args );
  • includes/admin/settings.php line 77
    apply_filters( 'wcboost_variation_swatches_settings_default', [ 'shape' => 'round', 'size' => [ 'width' => 30, 'height' => 30 ], 'tooltip' => 'yes', 'auto_button' => 'yes', 'show_selected_label' => 'no', 'invalid_display' => 'blur', ], Plugin::instance()->get_mapping()->get_option_value( 'settings' ) );
  • includes/admin/settings.php line 167
    apply_filters( 'wcboost_variation_swatches_shape_options', [ 'round' => esc_html__( 'Circle', 'wcboost-variation-swatches' ), 'rounded' => esc_html__( 'Rounded corners', 'wcboost-variation-swatches' ), 'square' => esc_html__( 'Square', 'wcboost-variation-swatches' ), ] );
  • includes/admin/term-meta.php line 222
    apply_filters( 'wcboost_variation_swatches_term_field_args', [ 'type' => $type, 'value' => $value, 'name' => $this->field_name( $type ), ], $term );
  • includes/admin/term-meta.php line 383
    do_action( 'wcboost_variation_swatches_term_meta_updated', $value, $term_id, $meta_key, $type );
  • includes/admin/product-data.php line 81
    apply_filters( 'woocommerce_admin_terms_metabox_datalimit', 50 );
  • includes/admin/product-data.php line 101
    apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term );
  • includes/swatches.php line 197
    apply_filters( 'woocommerce_variation_option_name', $name, ( is_object( $term ) ? $term : null ), $args['attribute'], $args['product'] );
  • includes/compatibility.php line 82
    apply_filters( 'wpml_default_language', null );
  • includes/compatibility.php line 84
    apply_filters( 'wpml_object_id', $term->term_id, $term->taxonomy, false, $default_lang );

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