Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce 2.3.3 has 44 actions and 125 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 Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce fires an action
add_action( 'merchant_added_to_cart_popup_action_buttons', function( $args ) {
// Your code runs here.
}, 10, 1 );
// Change a value Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce is about to use
add_filter( 'merchant_analytics_module_metrics', function( $value, $module_id, $object ) {
// 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.
Changes by version
All hooks
-
/** * Hook: merchant_analytics_module_metrics */ apply_filters( 'merchant_analytics_module_metrics', $this->default_analytics_metrics(), $this->module_id, $this ); -
/** * Filter the shortcode html content. */ apply_filters( 'merchant_module_shortcode_content_html', $shortcode_content, self::MODULE_ID, get_the_ID() ); -
/** * Product info. */ do_action( 'merchant_added_to_cart_popup_action_buttons', $args ); -
/** * Fires before module options are rendered. */ do_action( 'merchant_admin_before_include_modules_options', self::MODULE_ID ); -
/** * Hook 'merchant_module_buy_now_wrapper_class' */ apply_filters( 'merchant_module_buy_now_wrapper_class', array() ); -
/** * `woocommerce_add_to_cart_validation` */ apply_filters( 'woocommerce_add_to_cart_validation', true, $item, $quantity ); -
/** * Switch to 'all' languages so get_term_by() can resolve the default-language * slug even when the visitor is browsing in a secondary language (WPML filters * term queries by current lang). */ do_action( 'wpml_switch_language', 'all' ); -
/** * Popup header. */ do_action( 'merchant_added_to_cart_popup_header', $args ); -
/** * Modules content. */ do_action( 'merchant_added_to_cart_popup_modules_content', $args ); -
/** * Product info. */ do_action( 'merchant_added_to_cart_popup_product_info', $args ); -
/** * Hook: merchant_module_settings */ apply_filters( 'merchant_module_settings', $settings, $module_id ); -
/** * Filter the maximum number of items allowed per array field type. */ apply_filters( 'merchant_ability_array_limits', $defaults ); -
/** * Filter to verify capability. */ apply_filters( 'merchant_analytics_data_ajax_verify_capability', true ); -
/** * Filter the Buy Now redirect URL. */ apply_filters( 'merchant_buy_now_redirect_url', $redirect_url, $campaign ); -
/** * Hook 'merchant_is_pre_order_product' Checks if the product is a pre-order. */ apply_filters( 'merchant_is_pre_order_product', $product->get_id() ); -
/** * Filter to get the available product rule. */ apply_filters( 'merchant_pre_order_available_rule', $product_rule, $product_id ); -
/** * `merchant_product_labels_sale_data_sale_price` */ apply_filters( 'merchant_product_labels_sale_data_sale_price', $sale_price, $product, $label ); -
/** * Hook 'merchant_quick_view_before_product_description' */ do_action( 'merchant_quick_view_after_product_description' ); -
/** * Hook 'merchant_quick_view_before_product_description' */ do_action( 'merchant_quick_view_before_product_description' ); -
/** * `merchant_quick_view_description` */ apply_filters( 'merchant_quick_view_description', $description ); -
/** * Collect WC cart fragments so the Added to Cart Popup module can inject its * popup_data and popup_template into the response. */ apply_filters( 'woocommerce_add_to_cart_fragments', array() ); -
/** * Filter a module's AI prompt examples. */ apply_filters( "merchant_{$this->module_id}_ai_examples", $this->ai_examples ); -
/** * Hook 'merchant_{$this->module_id}_is_shortcode_enabled' */ apply_filters( "merchant_{$this->module_id}_is_shortcode_enabled", Merchant_Admin_Options::get( $this->module_id, 'use_shortcode', false ) ); -
/** * Filter a module's option group definitions. */ apply_filters( "merchant_{$this->module_id}_option_groups", $groups ); -
/** * Allows Merchant Pro and third-party plugins to extend the abilities layer in * two ways: */ do_action( 'merchant_abilities_register_modules', $registry ); -
/** * After added to cart popup layout html. */ do_action( 'merchant_added_to_cart_popup_layout_after_popup_html', $args ); -
/** * Before added to cart popup layout html. */ do_action( 'merchant_added_to_cart_popup_layout_before_popup_html', $args ); -
/** * Hook 'merchant_admin_after_include_modules_classes'. */ do_action( 'merchant_admin_after_include_modules_classes' ); -
/** * Hook 'merchant_admin_after_module_page_page_header' */ do_action( 'merchant_admin_after_module_page_page_header', $merchant_module ); -
/** * Hook 'merchant_admin_localize_script' */ apply_filters( 'merchant_admin_localize_script', $localized_data ); -
/** * Hook 'merchant_admin_module_{module_id}_activate_button_class' Filters the * class name for the activate button. */ apply_filters( "merchant_admin_module_{$merchant_module}_activate_button_class", 'merchant-module-page-button merchant-module-activate merchant-module-page-button-action-activate' ); -
/** * Hook 'merchant_admin_module_{module_id}_list_item_class' */ apply_filters( "merchant_admin_module_{$module_id}_list_item_class", 'merchant-modules-list-item' ); -
/** * Fires when a module is activated. */ do_action( 'merchant_admin_module_activated', $module_id ); -
/** * Fires when a module is deactivated. */ do_action( 'merchant_admin_module_deactivated', $module_id ); -
/** * Hook 'merchant_admin_module_field_description' */ apply_filters( 'merchant_admin_module_field_description', $desc, $settings, $value, $module_id ); -
/** * Hook 'merchant_admin_module_field_wrapper_classes' */ apply_filters( 'merchant_admin_module_field_wrapper_classes', $wrapper_classes, $settings, $value, $module_id ); -
/** * Hook: 'merchant_admin_settings_after_options' */ do_action( 'merchant_admin_settings_after_options' ); -
/** * Hook: 'merchant_admin_settings_before_options' */ do_action( 'merchant_admin_settings_before_options' ); -
/** * Hook: `merchant_adv_pagination_args` */ apply_filters( 'merchant_adv_pagination_args', $pagination_args ); -
/** * Hook 'merchant_after_adv_reviews_section' */ do_action( 'merchant_after_adv_reviews_section' ); -
/** * Hook 'merchant_after_shop_reviews_adv_pagination' */ do_action( 'merchant_after_shop_reviews_adv_pagination', array_merge( $args, $comments_args ) ); -
/** * `merchant_all_campaigns_items_per_page` */ apply_filters( 'merchant_all_campaigns_items_per_page', 25 ); -
/** * Filter all campaigns data for the campaigns report. */ apply_filters( 'merchant_analytics_all_campaigns_data', $campaigns_data, $period ); -
/** * Filter all modules data for the campaigns report. */ apply_filters( 'merchant_analytics_all_modules_data_campaigns_table', merchant_get_modules_data() ); -
/** * Filter the arguments for the event to be logged. */ apply_filters( 'merchant_analytics_log_event_args', $args ); -
/** * Filter the maximum number of impressions to retrieve for the impressions * chart. */ apply_filters( 'merchant_analytics_max_impressions_limit', - 1 ); -
/** * Filter the maximum number of orders to retrieve for AOV chart. */ apply_filters( 'merchant_analytics_max_orders_limit_aov', - 1 ); -
/** * Filter the maximum number of orders to retrieve for revenue chart. */ apply_filters( 'merchant_analytics_max_orders_limit_revenue', - 1 ); -
/** * Hook: merchant_analytics_page_after. */ do_action( 'merchant_analytics_page_after', $reports, $date_ranges ); -
/** * Hook: merchant_analytics_page_before. */ do_action( 'merchant_analytics_page_before', $reports, $date_ranges ); -
/** * Hook: merchant_analytics_page_between_aov_and_impressions. */ do_action( 'merchant_analytics_page_between_aov_and_impressions', $reports, $date_ranges ); -
merchant_analytics_page_between_impressions_and_campaigns_table
action Copy link Customise this hook/** * Hook: merchant_analytics_page_between_impressions_and_campaigns_table. */ do_action( 'merchant_analytics_page_between_impressions_and_campaigns_table', $reports, $date_ranges ); -
/** * Hook: merchant_analytics_page_between_revenue_and_aov. */ do_action( 'merchant_analytics_page_between_revenue_and_aov', $reports, $date_ranges ); -
/** * Filter the analytics toggle. */ apply_filters( 'merchant_analytics_toggle', Merchant_Admin_Options::get( 'global-settings', 'analytics_toggle', true ) ); -
/** * Filter the top performing campaigns data. */ apply_filters( 'merchant_analytics_top_performing_campaigns', $db_campaigns, $date_range ); -
/** * Filter the top performing campaigns data. */ apply_filters( 'merchant_analytics_top_performing_campaigns_data', $campaigns, $date_range ); -
/** * Filter the maximum number of top performing campaigns to retrieve. */ apply_filters( 'merchant_analytics_top_performing_campaigns_limit', 10 ); -
/** * Filters the HTML for products in the grid. */ apply_filters( 'merchant_blocks_product_grid_item_html', "<li class=\"wc-block-grid__product merchant_product-labels-grid_item_html\"> <a href=\"{$data->permalink}\" class=\"wc-block-grid__product-link\"> {$data->image} {$data->title} {$this->get_labels( $product, 'archive' )} </a> {$data->price} {$data->rating} {$data->button} </li>", $data, $product ); -
/** * Hook to track the response of the bulk statistics */ do_action( 'merchant_bulk_send_statistics_background_process', $response ); -
/** * Filters the list of excluded brand slugs for the buy now module. */ apply_filters( 'merchant_buy_now_excluded_brands', $excluded_brands ); -
/** * Filters the list of excluded category slugs for the buy now module. */ apply_filters( 'merchant_buy_now_excluded_categories', $excluded_categories ); -
/** * Filters the list of excluded product IDs for the buy now module. */ apply_filters( 'merchant_buy_now_excluded_products', $excluded_products ); -
/** * Filters the list of excluded tag slugs for the buy now module. */ apply_filters( 'merchant_buy_now_excluded_tags', $excluded_tags ); -
/** * Filters whether the Buy Now button should be excluded for a specific product * in Quick View. */ apply_filters( 'merchant_buy_now_is_excluded', false, $product ); -
/** * Filters whether the product should be excluded from the buy now button. */ apply_filters( 'merchant_buy_now_should_exclude', false, $product_id ); -
/** * Hook: merchant_changelog_api_url */ apply_filters( 'merchant_changelog_api_url', 'https://athemes.com/wp-json/wp/v2/notifications?theme=7103&per_page=3' ); -
/** * The Merchant changelog URL. */ apply_filters( 'merchant_changelog_url', 'https://athemes.com/changelog/merchant/' ); -
/** * Hook: merchant_custom_css */ apply_filters( 'merchant_custom_css', '', $this ); -
/** * Fires after a database table is created or updated. */ do_action( 'merchant_db_table_created', $table['name'], $exists, $show_errors ); -
/** * Filter the tables to be created in the database. */ apply_filters( 'merchant_db_tables', array( 'sales_notifications_table' => self::get_sales_notifications_table(), 'sales_notifications_shown_table' => self::get_sales_notifications_shown_table(), 'modules_analytics_table' => self::get_modules_analytics_table(), ) ); -
/** * The Merchant documentation URL. */ apply_filters( 'merchant_docs_url', 'https://docs.athemes.com/documentation/merchant/' ); -
/** * Hook 'merchant_enqueue_after_main_css_js' */ do_action( 'merchant_enqueue_after_main_css_js' ); -
/** * Hook 'merchant_enqueue_before_main_css_js' */ do_action( 'merchant_enqueue_before_main_css_js' ); -
/** * Product title suffix. */ apply_filters( 'merchant_fbt_product_title_suffix', '...', $product_data ); -
/** * Product title words count. */ apply_filters( 'merchant_fbt_product_title_words', 10, $product_data ); -
/** * Filter: register, override, or remove field types. */ apply_filters( 'merchant_field_types', $field_types ); -
/** * Hook: merchant_get_option filter. Fires after getting module option. */ apply_filters( 'merchant_get_option', $value, $module, $setting, $default_val ); -
/** * Hook: 'merchant_get_template_part' */ apply_filters( 'merchant_get_template_part', $template, $folder_path, $name ); -
/** * Filter the status field configuration for a group. */ apply_filters( 'merchant_group_status_field', $default_def, $settings, $value, $module_id ); -
/** * `merchant_head_custom_js_priority` */ apply_filters( 'merchant_head_custom_js_priority', 12 ); -
/** * Filter the Merchant health checks. */ apply_filters( 'merchant_health_checks', array( 'db_tables' => array( 'Merchant_DB_Tables', 'health_check' ) ) ); -
/** * Filters the allowed tags. */ apply_filters( 'merchant_kses_allowed_tags', $allowed_tags ); -
/** * Hook 'merchant_localize_script' */ apply_filters( 'merchant_localize_script', $setting ); -
/** * Hook: merchant_metabox_options */ do_action( 'merchant_metabox_options', self::$options ); -
/** * Hook: merchant_metabox_options_filter */ apply_filters( 'merchant_metabox_options_filter', self::$options ); -
/** * Hook: merchant_metabox_title */ apply_filters( 'merchant_metabox_title', $title_prefix . $metabox_title, $post_type ); -
/** * Hook 'merchant_module_{$module}_deactivate' */ apply_filters( "merchant_module_{$module}_deactivate", false ); -
/** * Hook 'merchant_module_buy_now_wrapper_attrs' */ apply_filters( 'merchant_module_buy_now_wrapper_attrs', $_attrs ); -
/** * Hook: merchant_module_file_path */ apply_filters( 'merchant_module_file_path', MERCHANT_DIR . 'admin/modules/' . $merchant_module . '/admin-page-' . $merchant_module . '.php', $merchant_module ); -
/** * Hook: merchant_module_preview */ apply_filters( 'merchant_module_preview', self::instance(), $module_id ); -
/** * Hook: merchant_module_settings_update */ apply_filters( 'merchant_module_settings_update', $settings, $this->module_id ); -
/** * Filter the shortcode error message html content. */ apply_filters( 'merchant_module_shortcode_error_message_html', '<div class="merchant-shortcode-wrong-placement">' . $message . '</div>', $this->module_id ); -
/** * Hook: merchant_modules */ apply_filters( 'merchant_modules', $modules, self::modules_translation_data() ); -
/** * Filter the shortcodes. */ apply_filters( 'merchant_modules_shortcodes', array( 'merchant_module_stock_scarcity', 'merchant_module_wait_list', 'merchant_module_volume_discounts', 'merchant_module_payment_logos', 'merchant_module_cart_reserved_timer', 'merchant_module_product_brand_image', 'merchant_module_size_chart', 'merchant_module_reasons_to_buy', 'merchant_module_recently_viewed_products', 'merchant_module_trust_badges', 'merchant_module_advanced_reviews', 'mer... ); -
/** * Hook: merchant_modules_translation_data Allow translating module data later * when needed. */ apply_filters( 'merchant_modules_translation_data', array( 'pre-orders' => array( 'title' => esc_html__( 'Pre-Orders', 'merchant' ), 'desc' => esc_html__( 'Allow visitors to pre-order products that are either out of stock or not yet released', 'merchant' ), 'tutorial_url' => 'https://docs.athemes.com/article/pre-orders/', ), 'wait-list' => array( 'title' => esc_html__( 'Waitlist', 'merchant' ), 'desc' => esc_html__( 'Build waitlists for sold-out... ); -
/** * Filter the translated string. */ apply_filters( 'merchant_multi_lang_translated_string', $translated_string, $string_to_translate ); -
/** * Hook 'merchant_notification_tabs' */ apply_filters( 'merchant_notification_tabs', false ); -
/** * Hook 'merchant_notifications_pro' */ apply_filters( 'merchant_notifications_pro', false ); -
/** * Filter the variation ID found for a complementary product. */ apply_filters( 'merchant_ohio_complementary_products_variation_id', (int) $variation_id, $product_id, $formatted_variation_data, $available_variations ); -
/** * Hook: merchant_options_saved, fired after saving module options. */ do_action( 'merchant_options_saved', $settings['module'], $options[ $settings['module'] ] ); -
/** * Hook: merchant_options_saved, fired after saving specific module options. */ do_action( "merchant_options_saved_{$settings['module']}", $options[ $settings['module'] ] ); -
/** * Filters the notice classes of sibling aThemes products. */ apply_filters( 'merchant_patcher_eol_sibling_notices', array( 'Botiga_Patcher_EOL_Notice', 'Sydney_Patcher_EOL_Notice', ) ); -
/** * Filter the plugin row meta links. */ apply_filters( 'merchant_plugin_row_meta', $row_meta, $file ); -
/** * The Merchant landing page URL. */ apply_filters( 'merchant_plugin_site_url', 'https://athemes.com/merchant/' ); -
/** * Recently viewed products product title suffix. */ apply_filters( 'merchant_popup_bogo_products_product_title_suffix', '...', $args['popup_data'] ); -
merchant_popup_bogo_products_product_title_suffix_second_product
filter Copy link Customise this hook/** * Product title suffix. */ apply_filters( 'merchant_popup_bogo_products_product_title_suffix_second_product', '...', $product ); -
/** * Recently viewed products product title words count. */ apply_filters( 'merchant_popup_bogo_products_product_title_words', 10, $args['popup_data'] ); -
merchant_popup_bogo_products_product_title_words_second_product
filter Copy link Customise this hook/** * Product title words count. */ apply_filters( 'merchant_popup_bogo_products_product_title_words_second_product', 10, $product ); -
/** * Product title suffix. */ apply_filters( 'merchant_popup_fbt_product_title_suffix', '...', $product_data ); -
/** * Product title words count. */ apply_filters( 'merchant_popup_fbt_product_title_words', 10, $product_data ); -
/** * Product title suffix. */ apply_filters( 'merchant_popup_recently_viewed_products_product_title_suffix', '...', $product ); -
/** * Product title words count. */ apply_filters( 'merchant_popup_recently_viewed_products_product_title_words', 10, $product ); -
/** * Filter the product types that are allowed to have storewide sale. */ apply_filters( 'merchant_pre_order_allowed_product_types', array( 'simple', 'variation', 'variable', ) ); -
/** * Filter the discounted price. */ apply_filters( 'merchant_pre_order_cart_sale_price', $sale_price, $cart_item, $cart_item_key ); -
/** * Disable the sale price change. */ apply_filters( 'merchant_pre_order_disable_sale_price_html', false, $html_price, $product ); -
/** * Filter the pre order sale. */ apply_filters( 'merchant_pre_order_rule_sale', $sale, $rule ); -
/** * Filter the discounted price. */ apply_filters( 'merchant_pre_order_sale_calculate_discounted_price', $price, $offer, $discount_type, $discount_value, $product ); -
/** * Disable the cart price change. */ apply_filters( 'merchant_pre_order_sale_disable_cart_price', false, $cart_item, $cart_item_key ); -
/** * Filter the pre order shipping date. */ apply_filters( 'merchant_pre_order_shipping_date_column', $order->get_meta( '_merchant_order_pre_order_shipping_date' ), $order ); -
/** * Filter the single product label. */ apply_filters( 'merchant_product_label', $label, $label_data ); -
/** * `merchant_product_labels_display_rules` */ apply_filters( 'merchant_product_labels_display_rules', $display_rules, Merchant_Product_Labels::MODULE_ID ); -
/** * Filter the product sale dat . */ apply_filters( 'merchant_product_labels_sale_data', $sale_data, $product, $label ); -
/** * Filter the product-settings metabox-class map. */ apply_filters( 'merchant_product_settings_metabox_classes', $map ); -
/** * Fires after a product-settings update writes its validated fields. */ do_action( 'merchant_product_settings_saved', $product_id, $module_id, $updated_fields ); -
/** * Hook 'merchant_quick_view_after_add_to_cart' */ do_action( 'merchant_quick_view_after_add_to_cart', $product, $settings ); -
/** * Hook 'merchant_quick_view_after_product_excerpt' */ do_action( 'merchant_quick_view_after_product_meta' ); -
/** * Hook 'merchant_quick_view_before_add_to_cart' */ do_action( 'merchant_quick_view_before_add_to_cart', $product, $settings ); -
/** * Hook 'merchant_quick_view_product_summary' */ do_action( 'merchant_quick_view_product_summary', $product, $settings ); -
/** * `merchant_real_time_search_product_description` */ apply_filters( 'merchant_real_time_search_product_description', $description, $product ); -
/** * `merchant_real_time_search_product_title` */ apply_filters( 'merchant_real_time_search_product_title', $item_title, $product ); -
/** * Hook: merchant_reasons_list_icon */ apply_filters( 'merchant_reasons_list_icon', Merchant_SVG_Icons::get_svg_icon( $item_icon ) ); -
/** * Hook 'merchant_reasons_to_buy_wrapper_class' */ apply_filters( 'merchant_reasons_to_buy_wrapper_class', array( 'merchant-reasons-list' ) ); -
/** * Hook 'merchant_review_after_child_comment_text' */ do_action( 'merchant_review_after_child_comment_text', $child_comment ); -
/** * Hook 'merchant_review_before_child_comment_text' */ do_action( 'merchant_review_before_child_comment_text', $child_comment ); -
/** * Hook to track the response of the single module activation */ do_action( 'merchant_single_module_activation_tracking_background_process', $module_id, $response ); -
merchant_single_module_deactivation_tracking_background_process
action Copy link Customise this hook/** * Hook to track the response of the single module deactivation */ do_action( 'merchant_single_module_deactivation_tracking_background_process', $module_id, $response ); -
/** * Hook 'merchant_sticky_add_to_cart_elements_order' */ apply_filters( 'merchant_sticky_add_to_cart_elements_order', array( 'product_image', 'product_title', 'product_price', 'add_to_cart' ) ); -
/** * Hook: merchant_sticky_add_to_cart_template_args */ apply_filters( 'merchant_sticky_add_to_cart_template_args', array( 'settings' => self::$module_settings, 'elements' => array( 'product_image' => '', 'product_title' => '<h5>' . esc_html__( 'Product Title', 'merchant' ) . '</h5>', 'product_price' => wc_price( 199 ), 'add_to_cart' => __( '<a href="#" class="single_add_to_cart_button button">Add to cart</a>', 'merchant' ), ), ) ); -
/** * Filter the storewide sale timezone. */ apply_filters( 'merchant_storewide_sale_timezone', wp_timezone_string() ); -
/** * `merchant_storewide_sale_variation_sale_price` */ apply_filters( 'merchant_storewide_sale_variation_sale_price', $product_price, $buy_product, $args['module_id'] ?? '', 'template' ); -
/** * Filter the svg icons. */ apply_filters( 'merchant_svg_icon', self::$svg_icons ); -
/** * Filter the translator class. */ apply_filters( 'merchant_translator_class_object', $translator_object ); -
/** * Modify upgrade link. */ apply_filters( 'merchant_upgrade_link', $url, $type ); -
/** * Filter the usage tracking data. */ apply_filters( 'merchant_usage_tracking_data', $data ); -
/** * Filter whether the Usage Tracking code is allowed to be loaded. */ apply_filters( 'merchant_usage_tracking_is_allowed', true ); -
/** * Filter whether the Usage Tracking is enabled. */ apply_filters( 'merchant_usage_tracking_is_enabled', Merchant_Admin_Options::get( 'global-settings', self::SETTINGS_SLUG, false ) ); -
/** * Action fired after usage data is sent. */ do_action( 'merchant_usage_tracking_sent', $response ); -
/** * Filter whether to show the usage tracking setting in the admin. */ apply_filters( 'merchant_usage_tracking_show_setting', true ); -
/** * Hook 'merchant_wc_reviews_advanced_sorting_args' */ apply_filters( 'merchant_wc_reviews_advanced_sorting_args', $comments_args ); -
/** * Filter White Label entitlement. */ apply_filters( 'merchant_white_label_available', false ); -
/** * This action is documented in woocommerce/includes/class-wc-checkout.php */ apply_filters( 'woocommerce_checkout_customer_id', get_current_user_id() ); -
/** * `woocommerce_loop_add_to_cart_link` */ apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" %s data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), $aria_describedby, esc_attr( $args['quantity'] ?? 1 ), esc_attr( $args['class'] ?? 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ); -
woocommerce_product_review_comment_form_args
filter Used by 17 plugins → Copy link Customise this hook/** * Hook: woocommerce_product_review_comment_form_args */ apply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ); -
/** * Hook 'woocommerce_review_after_comment_text' */ do_action( 'woocommerce_review_after_comment_text', $comment ); -
/** * Hook 'woocommerce_review_before_comment_text' */ do_action( 'woocommerce_review_before_comment_text', $comment ); -
/** * Get the WPML default language. */ apply_filters( 'wpml_default_language', '' ); -
apply_filters( 'merchant_single_review_item_rendered', '', null ); -
apply_filters( 'wpml_object_id', $term_obj->term_id, $taxonomy, true, $language ); -
apply_filters( 'merchant_pro_product_bundle_item_product_info', $product->get_type() . '<br/>#' . $product_id, $product ); -
apply_filters( 'merchant_product_item_product_image', '<span class="img">' . $product->get_image( array( 30, 30 ) ) . '</span>', $product ); -
apply_filters( 'merchant_reviews_per_page', 10 ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_post_language_details', null, $post_id ); -
do_action( 'wpml_register_single_string', 'Merchant', $this->get_string_name( (string) $string_to_register, (string) $context ), $string_to_register ); -
apply_filters( 'wpml_translate_single_string', $string_to_translate, 'Merchant', $string_to_translate );
Generated from Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More 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: