MoreConvert Compare for WooCommerce 1.0.2 has 16 actions and 40 filters, read directly from its source code on Nov 19, 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 MoreConvert Compare for WooCommerce fires an action
add_action( 'moreconvert_compare_for_woocommerce_init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value MoreConvert Compare for WooCommerce is about to use
add_filter( 'moreconvert_framework_options_can_update', function( $value, $arg2, $new_options ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
apply_filters( 'moreconvert_framework_options_can_update', true, $this->options['id'], $new_options ); -
apply_filters( 'moreconvert_framework_get_option', get_option( sanitize_key( $this->options['id'] ), array() ), $this->options['id'] ); -
apply_filters( 'moreconvert_compare_fields_to_show', array() ); -
moreconvert_framework_get_field_template_path
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'moreconvert_framework_get_field_template_path', $field_template, $field ); -
apply_filters( "moreconvert_framework_panel_redirect_{$this->options['id']}", add_query_arg( array( 'page' => isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : '', $state => 1, ), $url ) ); -
apply_filters( 'moreconvert_appsero_is_local', $is_local ); -
apply_filters( 'moreconvert_compare_attribute_order', array( 'stock' => 10, 'reviews' => 20, 'weight' => 30, 'dimensions' => 40, 'sku' => 50, 'attributes_p' => 60, 'short_description' => 1000, ) ); -
apply_filters( 'moreconvert_compare_locate_template', $plugin_path, $path ); -
apply_filters( 'moreconvert_compare_product_attributes', array(), $product ); -
apply_filters( 'moreconvert_compare_product_data', array(), $product ); -
apply_filters( "moreconvert_appsero_{$this->client->slug}_tracker_data", $data ); -
do_action( "moreconvert_appsero_{$this->client->slug}_tracker_optin", $this->get_tracking_data() ); -
do_action( "moreconvert_appsero_{$this->client->slug}_tracker_optout" ); -
moreconvert_appsero_{$this->client->slug}_uninstall_reason_submitted
action Copy link Customise this hookdo_action( "moreconvert_appsero_{$this->client->slug}_uninstall_reason_submitted", $data ); -
moreconvert_appsero_custom_deactivation_reasons
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'moreconvert_appsero_custom_deactivation_reasons', array(), $this->client ); -
apply_filters( 'moreconvert_appsero_endpoint', 'https://api.appsero.com' ); -
apply_filters( 'moreconvert_compare_admin_options', array( 'compare' => array( 'tabs' => array( 'general' => __( 'General', 'moreconvert-compare-for-woocommerce' ), 'button' => __( 'Button', 'moreconvert-compare-for-woocommerce' ), 'table' => __( 'Comparison Table', 'moreconvert-compare-for-woocommerce' ), ), 'fields' => array( 'general' => apply_filters( 'moreconvert_compare_general_settings', array( 'start-article-display-settings' => array( '... ); -
apply_filters( 'moreconvert_compare_button_positions', array( 'before_add_to_cart_button' => array( array( 'hook' => 'woocommerce_before_add_to_cart_button', 'priority' => 90, ), ), 'after_add_to_cart_button' => array( array( 'hook' => 'woocommerce_after_add_to_cart_button', 'priority' => 20, ), ), ) ); -
apply_filters( 'moreconvert_compare_button_settings', array( 'start-article-button-settings' => array( 'type' => 'start', 'title' => __( '"Add to Compare" Buttons Style', 'moreconvert-compare-for-woocommerce' ), ), 'button_single_style' => array( 'section' => 'compare', 'label' => __( 'Button Single style', 'moreconvert-compare-for-woocommerce' ), 'type' => 'group-fields', 'custom_attributes' => array( 'style' => 'max-width:600px;', ), 'class' => ... ); -
apply_filters( 'moreconvert_compare_comparison_max_products', 4 ); -
apply_filters( 'moreconvert_compare_css_rules', array( 'button_border_type_single' => array( 'selector' => '.moreconvert-compare-button.moreconvert-compare-single-position', 'rules' => array( 'rule' => 'border-style: %s !important', 'default' => $this->options->get_option( 'button_border_type_single', '#515151' ), ), ), 'button_border_width_single' => array( 'selector' => '.moreconvert-compare-button.moreconvert-compare-single-position', 'ru... ); -
apply_filters( 'moreconvert_compare_custom_css_output', $generated_code ); -
do_action( 'moreconvert_compare_for_woocommerce_init' ); -
apply_filters( 'moreconvert_compare_general_settings', array( 'start-article-display-settings' => array( 'type' => 'start', 'title' => __( 'Display Settings', 'moreconvert-compare-for-woocommerce' ), 'desc' => __( 'You only need to set them once after installing the plugin.', 'moreconvert-compare-for-woocommerce' ), ), 'compare_enable' => array( 'label' => __( 'Enable Compare', 'moreconvert-compare-for-woocommerce' ), 'type' => 'switch', 'default' ... ); -
do_action( 'moreconvert_compare_installed' ); -
apply_filters( 'moreconvert_compare_loop_position_options', array( 'before_add_to_cart' => __( 'Before "add to cart" button', 'moreconvert-compare-for-woocommerce' ), 'after_add_to_cart' => __( 'After "add to cart" button', 'moreconvert-compare-for-woocommerce' ), 'shortcode' => __( 'Use shortcode', 'moreconvert-compare-for-woocommerce' ), ) ); -
apply_filters( 'moreconvert_compare_loop_positions', array( 'before_add_to_cart' => array( 'hook' => 'woocommerce_after_shop_loop_item', 'priority' => 7, ), 'after_add_to_cart' => array( 'hook' => 'woocommerce_after_shop_loop_item', 'priority' => 15, ), ) ); -
apply_filters( 'moreconvert_compare_product_variation_attributes', array(), $wc_product, $variation, $var['attributes'] ); -
apply_filters( 'moreconvert_compare_search_product_limit', 10 ); -
apply_filters( 'moreconvert_compare_single_position_options', array( 'before_add_to_cart_button' => __( 'Before "add to cart" button', 'moreconvert-compare-for-woocommerce' ), 'after_add_to_cart_button' => __( 'After "add to cart" button', 'moreconvert-compare-for-woocommerce' ), 'shortcode' => __( 'Use shortcode', 'moreconvert-compare-for-woocommerce' ), ) ); -
apply_filters( 'moreconvert_compare_table_settings', array( 'start-article-table-settings' => array( 'type' => 'start', 'title' => __( 'Comparison Table', 'moreconvert-compare-for-woocommerce' ), ), 'fields_to_show' => array( 'label' => __( 'Fields to Show', 'moreconvert-compare-for-woocommerce' ), 'type' => 'checkbox-group', 'options' => array( 'image' => __( 'Image', 'moreconvert-compare-for-woocommerce' ), 'title' => __( 'Title', 'moreconvert-... ); -
apply_filters( 'moreconvert_compare_text_options', array( 'text' => array( 'tabs' => array( 'labels' => __( 'Labels', 'moreconvert-compare-for-woocommerce' ), ), 'fields' => array( 'labels' => apply_filters( 'moreconvert_compare_text_settings', array( 'start-article-text-settings' => array( 'type' => 'start', 'title' => __( 'Text Settings', 'moreconvert-compare-for-woocommerce' ), ), 'add_to_compare_text' => array( 'label' => __( 'Add to Compar... ); -
apply_filters( 'moreconvert_compare_text_settings', array( 'start-article-text-settings' => array( 'type' => 'start', 'title' => __( 'Text Settings', 'moreconvert-compare-for-woocommerce' ), ), 'add_to_compare_text' => array( 'label' => __( 'Add to Compare Text', 'moreconvert-compare-for-woocommerce' ), 'type' => 'text', 'translatable' => true, 'default' => __( 'Add to Compare', 'moreconvert-compare-for-woocommerce' ), ), 'select_product_text' =... ); -
do_action( 'moreconvert_compare_updated' ); -
apply_filters( 'moreconvert_framework_ajax_validate', true, $option_id, $saved_options ); -
do_action( 'moreconvert_framework_end_mct_inside', $this ); -
apply_filters( 'moreconvert_framework_options_can_reset', true, $this->options['id'] ); -
moreconvert_framework_options_can_set_default_values
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'moreconvert_framework_options_can_set_default_values', true, $this->options['id'] ); -
apply_filters( 'moreconvert_framework_options_validate', true, $this->options['id'], $new_options ); -
do_action( "moreconvert_framework_output_panel_{$this->type}", array( 'sections' => $this->sections, 'options' => $this->options, 'title' => $this->title, 'logo' => $this->logo, 'header_buttons' => $this->header_buttons, 'header_menu' => $this->header_menu, 'footer_buttons' => $this->footer_buttons, 'page_buttons' => $this->page_buttons, 'type' => $this->type, 'id' => $this->id, 'desc' => $this->desc, 'sidebar' => $this->sidebar, 'steps' => $this->steps, '... ); -
do_action( "moreconvert_framework_panel_after_{$option_id}_ajax_update", $saved_options ); -
moreconvert_framework_panel_after_{$this->options['id']}_update
action Copy link Customise this hookdo_action( "moreconvert_framework_panel_after_{$this->options['id']}_update" ); -
moreconvert_framework_panel_after_{$this->options['id']}_wizard_update
action Copy link Customise this hookdo_action( "moreconvert_framework_panel_after_{$this->options['id']}_wizard_update", $saved_options ); -
moreconvert_framework_panel_before_{$this->options['id']}_update
action Copy link Customise this hookdo_action( "moreconvert_framework_panel_before_{$this->options['id']}_update" ); -
apply_filters( 'moreconvert_framework_panel_messages', array( 'saved' => $this->get_message( '<strong>' . __( 'Settings saved.', 'moreconvert-compare-for-woocommerce' ) . '</strong>', 'updated', false ), 'reset' => $this->get_message( '<strong>' . __( 'Settings reset.', 'moreconvert-compare-for-woocommerce' ) . '</strong>', 'updated', false ), 'not-validate' => $this->get_message( '<strong>' . __( 'Some fields not validate.', 'moreconvert-compare-f... ); -
moreconvert_framework_range_datepicker_labels
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'moreconvert_framework_range_datepicker_labels', array( 'applyLabel' => __( 'Apply', 'moreconvert-compare-for-woocommerce' ), 'cancelLabel' => __( 'Clear', 'moreconvert-compare-for-woocommerce' ), 'customRangeLabel' => __( 'Custom', 'moreconvert-compare-for-woocommerce' ), 'last_7_days' => __( 'Last 7 days', 'moreconvert-compare-for-woocommerce' ), 'last_30_days' => __( 'Last 30 days', 'moreconvert-compare-for-woocommerce' ), 'last_90_days' =... ); -
do_action( 'moreconvert_framework_start_mct_inside', $this ); -
apply_filters( "moreconvert_framework_wizard_{$this->options['id']}_value", $saved_options ); -
do_action( "moreconvert_framework_wizard_after_step_title_{$this->id}_{$k}", $step ); -
moreconvert_framework_wizard_before_step_field_{$this->id}_{$k}
action Copy link Customise this hookdo_action( "moreconvert_framework_wizard_before_step_field_{$this->id}_{$k}", $step ); -
moreconvert_framework_wizard_before_title_step_field_{$this->id}_{$k}
action Copy link Customise this hookdo_action( "moreconvert_framework_wizard_before_title_step_field_{$this->id}_{$k}", $step ); -
apply_filters( "moreconvert_framework_wizard_redirect_{$this->options['id']}", add_query_arg( array( 'step' => isset( $_GET['step'] ) ? sanitize_key( wp_unslash( $_GET['step'] ) ) : '', ) ) ); -
apply_filters( 'moreconvert_framework_wizard_validate', true, $this->options['id'], $saved_options ); -
apply_filters( 'woocommerce_out_of_stock_message', __( 'This product is currently out of stock and unavailable.', 'moreconvert-compare-for-woocommerce' ) ); -
apply_filters( 'woocommerce_reset_variations_link', '<tr><td colspan="2" class="variation-wrapper reset"><a class=" moreconvert-compare-reset-variations" href="#">' . esc_attr( $clear_text ) . '</a></td></tr>' );
Generated from MoreConvert Compare for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: