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.
// 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
-
/** * Filter the swatche term meta value. */ apply_filters( 'wcboost_variation_swatches_term_meta', $value, $term_id, $key, $type ); -
/** * This filter is used to translate term meta data. */ apply_filters( 'wcboost_variation_swatches_translate_term_meta', $value, $term_id, $key, $type ); -
apply_filters( "wcboost_variation_swatches_{$type}_html", $html, $args, $data, $term ); -
apply_filters( 'wcboost_variation_swatches_attribute_swatches_data', $data, $term, $args ); -
apply_filters( 'wcboost_variation_swatches_attribute_thumb_column_content', $html, $value, $attr, $term_id ); -
apply_filters( 'wcboost_variation_swatches_classes', $classes, $swatches_args, $attribute_name, $product ); -
apply_filters( 'wcboost_variation_swatches_css', $css ); -
do_action( 'wcboost_variation_swatches_enqueue_scripts' ); -
apply_filters( 'wcboost_variation_swatches_field_html', $html, $args ); -
apply_filters( 'wcboost_variation_swatches_html', $html, $args ); -
do_action( 'wcboost_variation_swatches_init' ); -
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... ); -
apply_filters( 'wcboost_variation_swatches_item_args', $swatches_args, $attribute, $product_id ); -
apply_filters( 'wcboost_variation_swatches_js_params', [ 'show_selected_label' => wc_string_to_bool( Helper::get_settings( 'show_selected_label' ) ), ] ); -
apply_filters( 'wcboost_variation_swatches_process_product_swatches_meta', $data, $post_id ); -
apply_filters( 'wcboost_variation_swatches_product_meta', $meta, $post_id ); -
apply_filters( 'wcboost_variation_swatches_product_meta_attribute_swatches_args', $args ); -
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' ) ); -
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' ), ] ); -
apply_filters( 'wcboost_variation_swatches_term_field_args', [ 'type' => $type, 'value' => $value, 'name' => $this->field_name( $type ), ], $term ); -
do_action( 'wcboost_variation_swatches_term_meta_updated', $value, $term_id, $meta_key, $type ); -
apply_filters( 'woocommerce_admin_terms_metabox_datalimit', 50 ); -
apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term ); -
apply_filters( 'woocommerce_variation_option_name', $name, ( is_object( $term ) ? $term : null ), $args['attribute'], $args['product'] ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
wpml_object_id
filterapply_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: