WordPress filter hook

woocommerce_loop_add_to_cart_link

Defined by WooCommerce and fired by 70 plugins in total, running on 8M+ sites between them.

“Filters the add to cart button class.”

How to use woocommerce_loop_add_to_cart_link

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_loop_add_to_cart_link', function( $button_HTML, $product ) {
	// Change $button_HTML here.
	return $button_HTML;
}, 10, 2 );

Argument names come from Royal Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

70 plugins that fire woocommerce_loop_add_to_cart_link

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_loop_add_to_cart_link', $html, $product, $args ) src/Blocks/BlockTypes/ProductButton.php:311
  2. Royal Addons for Elementor icon Royal Addons for Elementor600,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button_HTML, $product ) classes/modules/wpr-woo-grid-helpers.php:1927
  3. Orbit Fox: Duplicate Page, Menu Icons, SVG Support, Cookie Notice, Custom Fonts & More icon Orbit Fox: Duplicate Page, Menu Icons, SVG Support, Cookie Notice, Custom Fonts & More100,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" title="%s" rel="nofollow">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->add_to_cart_text() ), esc_html( $product->add_to_cart_text() ) ), $product ) obfx_modules/elementor-extra-widgets/widgets/elementor/posts-grid.php:1782
  4. Tutor LMS icon Tutor LMS90,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s><span class="tutor-icon-cart-line tutor-mr-8"></span><span class="cart-text">%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ... ) templates/loop/add-to-cart-woocommerce.php:74
  5. ShopLentor icon ShopLentor80,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s add-to-cart-loop" %s><span>%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $p... ) includes/modules/compare/includes/classes/Frontend/Manage_Compare.php:527
  6. UiCore Elements icon UiCore Elements40,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%1$s" %2$s> %3$s </a>', esc_url($product->add_to_cart_url()), $this->get_render_attribute_string($button_slug), Helper::esc_svg($tbn_content) ), $product ) includes/utils/product-component.php:307
  7. Thim Elementor Kit icon Thim Elementor Kit20,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', $text_cart ), $product, $args ) inc/elementor/widgets/loop-item/loop-product-button.php:310
  8. King Addons for Elementor icon King Addons for Elementor10,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button_HTML, $product ) includes/helpers/Grid/Filter_WooCommerce_Products_Ajax.php:1081
  9. ShopBuilder icon ShopBuilder10,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s add-to-cart-loop" %s><span>%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $p... ) app/Modules/Compare/CompareFns.php:293
  10. Related Products icon Related Products10,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url($product->add_to_cart_url()), esc_attr(isset($args['quantity']) ? $args['quantity'] : 1 ), esc_attr(isset($args['class']) ? $args['class'] : 'button' ), isset($args['attributes']) ? wc_implode_html_attributes($args['attributes']) : '', esc_html($product->add_to_cart_text()) ), $product ) public/partials/wt-custom-related.php:82
  11. LA-Studio Element Kit for Elementor icon LA-Studio Element Kit for Elementor10,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%1$s" data-quantity="%2$s" class="lakit-btn la-addcart %3$s" %4$s data-hint="%5$s">%7$s<span class="lakit-btn--text">%6$s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr($args['quantity'] ?? 1), esc_attr( $button_class ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_attr($button_text), esc_html($button_text), $button... ) includes/modules/woocommerce/classes/base-products-renderer.php:805
  12. Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce icon Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce8,000+ installs 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 ) templates/modules/added-to-cart-popup/common/add-to-cart.php:29
  13. Category AJAX Filter icon Category AJAX Filter6,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $link_html, $product, array( 'quantity' => 1, 'class' => implode( ' ', $classes ), 'attributes' => array( 'data-product_id' => $product->get_id(), 'data-product_sku' => $product->get_sku(), 'aria-label' => wp_strip_all_tags( $product->add_to_cart_description() ), 'rel' => 'nofollow', ), ) ) includes/woocommerce/class-caf-free-woo.php:1283
  14. Spexo Addons for Elementor icon Spexo Addons for Elementor6,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button_HTML, $product ) inc/widgets/woo-product-grid.php:9560
  15. ThemeHunk Customizer icon ThemeHunk Customizer6,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="button %s %s"><span>%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',$product->supports(... ) shopline/woo/woocommerce.php:275
  16. Hunk Companion icon Hunk Companion5,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="elemento-add-to-cart-btn button %s %s">%s %s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_id()), esc_attr($product->get_sku()), 1, $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', $product->is_purchasable() && $product->is_in_stock() ... ) th-shop-mania/post-filter.php:231
  17. Product Table for WooCommerce icon Product Table for WooCommerce5,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf('<a rel="nofollow" data-add_to_cart_url="%s" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s" target="%s">%s</a>', esc_attr( $add_to_cart_url ), esc_url( $add_to_cart_url ), esc_attr( $default_quantity ), esc_attr($product->get_id()), esc_attr($product->get_sku()), esc_attr( $ajax_action_final . ( $row_class ? 'wpt_variation_product single_add_to_cart_b... ) compatible/plugins/waitlist-woocommerce/waitlist-col.php:70
  18. ThemeHunk icon ThemeHunk5,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $html, $product, array() ) inc/taiowc-markup.php:1794
  19. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" class="%s" data-stock="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), ( ! empty( $args['class'] ) ? esc_attr( $args['class'] ) : '' ), esc_attr( $product->get_stock_quantity() ), wc_implode_html_attributes( $attributes ), $inner_html ), $product, $args ) classes/Functions.php:3277
  20. Art WooCommerce Order One Click icon Art WooCommerce Order One Click4,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" aria-describedby="woocommerce_loop_add_to_cart_link_describedby_%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_id() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $arg... ) includes/template-functions.php:182
  21. Ultimate Store Kit icon Ultimate Store Kit3,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s <i class="button-icon usk-icon-arrow-right-8"></i></a>', esc_url($product->add_to_cart_url()), esc_attr(isset($args['quantity']) ? $args['quantity'] : 1), esc_attr(isset($args['class']) ? $args['class'] : 'button'), isset($args['attributes']) ? wc_implode_html_attributes($args['attributes']) : '', esc_html($product->add_to_cart_text()) ... ) modules/image-hotspot/widgets/image-hotspot.php:2391
  22. ThemeHunk Product Compare for WooCommerce icon ThemeHunk Product Compare for WooCommerce3,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="th-compare-add-to-cart-btn %s" %s> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shopping-cart" aria-hidden="true"><circle cx="8" cy="21" r="1"></circle><circle cx="19" cy="21" r="1"></circle>... ) admin/front/product.php:714
  23. Pinpoint Booking System icon Pinpoint Booking System2,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf('<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button %s product_type_%s">%s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_id()), esc_attr($product->get_sku()), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', esc_attr($product->get_type()), esc_html($product->add_to_cart_text())), $product ) addons/woocommerce/includes/class-woocommerce-category.php:93
  24. The Pack Elementor addon icon The Pack Elementor addon2,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button %s product_type_%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), $product->is_purchasable() ? $ak : '', esc_attr( $product->get_type() ), esc_attr( $product->add_to_cart_text() ) ), $product ) includes/woocommerce/parts/add-to-cart.php:6
  25. Tutor LMS Divi Modules icon Tutor LMS Divi Modules1,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s><span class="tutor-icon-cart-line tutor-mr-8"></span><span class="cart-text">%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ... ) includes/templates/course/loop/add-to-cart-woocommerce.php:73
  26. ElementCamp icon ElementCamp1,000+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', '<a href="' . $product->add_to_cart_url() . '" rel="nofollow" data-product_id="' . esc_attr($product->get_id()) . '" data-product_sku="' . esc_attr($product->get_sku()) . '"' . (isset($settings['link_to']) && $settings['link_to'] == 'custom' && $settings['link']['is_external'] ? ' target="_blank"' : '') . ' class="tcgelements-button product_type_' . esc_attr($product->get_type()) . ' ' . esc_at... ) elementor/elements/widgets/button/button.php:5481
  27. Unlimited Addons For Gutenberg Blocks icon Unlimited Addons For Gutenberg Blocks800+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="elemento-add-to-cart-btn %s %s">' . $icon_ . $text . '</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_id()), esc_attr($product->get_sku()), 1, $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', $product->is_purchasable() && $product->is_i... ) inc/ajax-fn/post-api/product-api.php:363
  28. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s %s %s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', $before, esc_html( $text ), $after, ), $product, $args ) Templates/Utils.php:346
  29. Ever Compare icon Ever Compare600+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s add-to-cart-loop" %s><span>%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $p... ) includes/classes/Frontend/Manage_Compare.php:547
  30. Leo Product Recommendations: Upsell Popup, Frequently Bought Together & Cart Drawer for WooCommerce icon Leo Product Recommendations: Upsell Popup, Frequently Bought Together & Cart Drawer for WooCommerce400+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', '<a href="#" class="lpr-tracking-probe"></a>', $item, array() ) includes/class-product-recommendations.php:1130
  31. CRT Addons Builder and Widgets for Elementor icon CRT Addons Builder and Widgets for Elementor300+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button_HTML, $product ) includes/customizer/addons/woocommerce/woocommerce-helpers.php:1559
  32. WIP WooCarousel Lite icon WIP WooCarousel Lite200+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="button ' . $button_class . ' %s product_type_%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : ... ) shortcode/products_carousel.php:99
  33. DiviNationKit Lite icon DiviNationKit Lite100+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%1$s" data-quantity="%2$s" class="%3$s" %4$s>%5$s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $args['quantity'] ?? 1 ), esc_attr( $args['class'] ?? 'dina_product-button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( array_filter( (array) $args['attributes'], array( self::class, 'filled' ) ) ) : '', esc_html( $ajax && '' !== $text ? $text : $product... ) includes/Shared/Products.php:608
  34. Premmerce Variation Swatches for WooCommerce icon Premmerce Variation Swatches for WooCommerce90+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ) views/woocommerce/loop/add-to-cart.php:39
  35. ShopMaker icon ShopMaker90+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>', esc_url( $wc_product->add_to_cart_url() ), 1, esc_attr( $product_id ), esc_attr( $wc_product->get_sku() ), 'button', esc_html( $wc_product->add_to_cart_text() ) ), $wc_product ) classes/widgets/wishlist/sm-wishlist-products.php:613
  36. StoreDisplay icon StoreDisplay80+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" data-product-id="%s" class="%s wcps-add-to-cart-button" %s>%s</a>', esc_url($product->add_to_cart_url()), esc_attr(isset($args['quantity']) ? $args['quantity'] : 1), esc_attr($product->get_id()), esc_attr(isset($args['class']) ? $args['class'] : 'button'), isset($args['attributes']) ? wc_implode_html_attributes($args['attributes']) : '', $button_content... ) inc/base/class-proddisp-layout-base.php:106
  37. Wow Elements Addons for Elementor icon Wow Elements Addons for Elementor60+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s><i class="eicon-cart"></i></a>', esc_url($product->add_to_cart_url()), esc_attr(isset($args['quantity']) ? $args['quantity'] : 1), esc_attr(isset($args['class']) ? $args['class'] : 'button'), isset($args['attributes']) ? wc_implode_html_attributes($args['attributes']) : '' ), $product, $args ) includes/traits/global-widget-template.php:210
  38. Atomic Addons icon Atomic Addons50+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s <i class="button-icon eicon-arrow-right"></i></a>', \esc_url($url), \esc_attr(isset($args['quantity']) ? $args['quantity'] : 1), \esc_attr(isset($args['class']) ? $args['class'] : 'button'), isset($args['attributes']) ? \wc_implode_html_attributes($args['attributes']) : '', \esc_html($button_text) ), $product, $args ) includes/templates/product-grid-dynamic.php:217
  39. Selleradise Elements icon Selleradise Elements30+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url($product->add_to_cart_url()), esc_attr(isset($args['quantity']) ? $args['quantity'] : 1), esc_attr(isset($args['class']) ? $args['class'] : 'bg-white border border-solid border-gray-300 text-gray-900 px-6 py-3 text-sm font-semibold rounded-full inline-flex justify-center items-center gap-2 text-center hover:text-white hove... ) template-parts/product/partials/add-to-cart-default.php:24
  40. ShopCred icon ShopCred30+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" target="%s" data-stock="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_html( $target ), esc_attr( $product->get_stock_quantity() ), wc_implode_html_attributes( $attributes ), $cartbtnText ? esc_html($cartbtnText) : esc_html( $product->add_to_cart_text() ) ), $product, $args ) includes/class-render-blocks.php:2117
  41. Elite Elementor Addons and Widgets icon Elite Elementor Addons and Widgets20+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button_HTML, $product ) classes/modules/elite-woo-grid-helpers.php:1524
  42. Restaurant Menu / bulk order plugin for WooCommerce icon Restaurant Menu / bulk order plugin for WooCommerce20+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $url ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? ($sidedish_present ? 'button' : $args['class']) : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ) single-product/add-to-cart.php:33
  43. Educat Elementor LMS Addon icon Educat Elementor LMS Addon20+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s ec-buy-btn" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ) includes/woo-functions.php:50
  44. WPEnhanced Ajax Filter Blocks icon WPEnhanced Ajax Filter Blocks20+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $args['quantity'] ), esc_attr( $args['class'] ), wc_implode_html_attributes( $args['attributes'] ), esc_html( $product->add_to_cart_text() ) ), $product, $args ) common/Shared/module-rest-calls/ArchiveLoop/REST.php:197
  45. Wishlist for Woocommerce icon Wishlist for Woocommerce10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="button %s ">%s</a>', esc_url( $pwlp_product->add_to_cart_url()."&pwlp_remove_id=".$kid ), esc_attr( $kid ), esc_attr( $pwlp_product->get_sku() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), $pwlp_product->is_purchasable() && $pwlp_product->is_in_stock() ? 'add_to_cart_button' : '', esc... ) wishlist_short_code.php:182
  46. Alter Inventory icon Alter Inventory10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf('<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="button btn-default alt %s product_type_%s">%s</a>', esc_url($product->add_to_cart_url($current_url)), esc_attr($product->id), esc_attr($product->get_sku()), $product->is_purchasable() ? 'add_to_cart_button' : '', esc_attr($product->product_type), esc_html($product->add_to_cart_text())), $product ) admin/partials/woocommerce-alter-inventory-shortcode-display.php:109
  47. OS WooCommerce Shop Design icon OS WooCommerce Shop Design10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ), $product ) woocommerce/loop/add-to-cart.php:25
  48. NoorPDP icon NoorPDP10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="1" class="button product_type_%s add_to_cart_button ajax_add_to_cart" data-product_id="%s" aria-label="%s" rel="nofollow">%s</a>', esc_url( $noorpdp_product->add_to_cart_url() ), esc_attr( $noorpdp_product->get_type() ), esc_attr( $noorpdp_product->get_id() ), esc_attr( $noorpdp_product->add_to_cart_description() ), esc_html( $noorpdp_product->add_to_cart_t... ) build/blocks/product-grid/render.php:115
  49. Max Elements for Elementor icon Max Elements for Elementor10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', '<a href="'. $product->add_to_cart_url(). '" rel="nofollow" data-product_id="'. esc_attr( $product->get_id() ). '" data-product_sku="'. esc_attr( $product->get_sku() ). '"'. (isset($settings['link_to']) && $settings['link_to'] == 'custom' && $settings['link']['is_external']? 'target="_blank"' : ''). ' class="max-elements-button product_type_'. esc_attr( $product->get_type() ) . esc_attr($animat... ) elementor/elements/widgets/button/button.php:3117
  50. Captain Widgets Kit for Elementor icon Captain Widgets Kit for Elementor10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $link, $product ) includes/elementor/widgets/class-captwiki-woo-compare-table.php:601
  51. Product Isotope Filter for Elementor icon Product Isotope Filter for Elementor10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'].' cart-btn' : 'cart-btn' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ) widgets/wco-isotop-widget.php:650
  52. Hexa Grid icon Hexa Grid10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $button, $product, $args ) includes/Helper.php:328
  53. Single Page Restaurant Menu for WooCommerce icon Single Page Restaurant Menu for WooCommerce10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>+</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '' ), $product, $args ) includes/template-parts/ajax-list.php:63
  54. Opal Estate Packages icon Opal Estate Packages10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'membership-add-to-purchase btn btn-md btn-block' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_tex... ) templates/content-package.php:65
  55. WooLayout icon WooLayout10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ), $product ) lib/woolayout/loop/add-to-cart.php:24
  56. Comparis icon Comparis10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" data-quantity="%s" class="btn btn-default button %s product_type_%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', esc_attr... ) templates/woocommerce/loop/add-to-cart.php:14
  57. Arik Dynamic Table & Addons for Elementor icon Arik Dynamic Table & Addons for Elementor10+ installs apply_filters( 'woocommerce_loop_add_to_cart_link', $atc_link, $product, array( 'quantity' => $input_qty ) ) widgets/class-arikedtw-product-table-widget.php:1236
  58. Bazario icon BazarioFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', '<a href="'. $product->add_to_cart_url(). '" rel="nofollow" data-product_id="'. esc_attr( $product->get_id() ). '" data-product_sku="'. esc_attr( $product->get_sku() ). '"'. ' class="product_type_'. esc_attr( $product->get_type() ) . ' add_to_cart_button ajax_add_to_cart"> <span class="button-content-wrapper"> '. (isset($settings['icon']) ||!empty($settings['selected_icon']['value']) && $settin... ) elements/widgets/product-list/product-list.php:4450
  59. Et-woo-product-price icon Et-woo-product-priceFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a class="btnmua" href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="add-cart button %s product_type_%s buynow">Buy</a>', esc_url( $product->add_to_cart_url() ), esc_attr( get_the_ID() ), esc_attr( $product->get_sku() ), $product->is_purchasable() ? 'add_to_cart_button' : '', esc_attr( ''), esc_html( $product->add_to_cart_text() ) ), $product ) template/productprice.php:375
  60. FoodMaster Lite icon FoodMaster LiteFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" rel="nofollow" data-product_id="%s" data-product_sku="%s" class="%s button product_type_%s">%s</a>', esc_url( $link['url'] ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_attr( $link['class'] ), esc_attr( $product->get_type() ), esc_html( $link['label'] ) ), $product, $link ) inc/func/shortcode.php:593
  61. Bundle Product Manager icon Bundle Product ManagerFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $product, $args ) template/simple.php:23
  62. Slidario icon SlidarioFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="1" class="button wp-element-button product_type_%s %s" data-product_id="%d" rel="nofollow">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_type() ), $product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button ajax_add_to_cart' : '', esc_attr( $pid ), esc_html( $product->add... ) templates/wc_products.php:177
  63. ECWAFE icon ECWAFEFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="1" class="button ajax_add_to_cart" data-product_id="%s" data-product_sku="%s" aria-label="%s" rel="nofollow">%s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_id()), esc_attr($product->get_sku()), esc_attr__('Add to cart', 'ecwafe-addons-for-elementor'), esc_html__('Add to cart', 'ecwafe-addons-for-elementor') ), $product ) includes/widgets/ecwafe-woo-product-carousel-widget.php:215
  64. AJx Filter for WooCommerce icon AJx Filter for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="1" class="button ajxfiltrfrwo-button ajax_add_to_cart add_to_cart_button product_type_%s" %s>%s</a>', esc_url($product->add_to_cart_url()), esc_attr($product->get_type()), wc_implode_html_attributes(array( 'data-product_id' => $product->get_id(), 'data-product_sku' => $product->get_sku(), 'aria-label' => $product->add_to_cart_description(), 'rel' => 'nofoll... ) ajx-filter-for-woo.php:428
  65. WpDev Product Slider for WooCommerce icon WpDev Product Slider for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', $wpdev_wc_slider_link, $wpdev_wc_slider_product, array() ) includes/class-wpdev-wc-slider-template-base.php:367
  66. TechLabIndia Hybrid Recommender for WooCommerce icon TechLabIndia Hybrid Recommender for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="1" class="button add_to_cart_button ajax_add_to_cart" data-product_id="%s" data-product_sku="%s" aria-label="%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( $product->get_id() ), esc_attr( $product->get_sku() ), esc_attr( $product->add_to_cart_description() ), esc_html( $product->add_to_cart_text() ) ), $product, array( 'quantity' => 1 ) ) includes/class-smartrec-widgets.php:129
  67. TIP Product Slider icon TIP Product SliderFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', $html, $product, array() ) core/shortcodes/class-product-slider-shortcode.php:567
  68. Appsila WooQuote icon Appsila WooQuoteFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', $quantity, $product ) WooQuote.php:735
  69. Revenue Booster for WooCommerce icon Revenue Booster for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" aria-describedby="woocommerce_loop_add_to_cart_link_describedby_%s" data-quantity="%s" class="%s" %s>%s</a>', esc_url( $bump_product->add_to_cart_url() ), esc_attr( $bump_product->get_id() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attrib... ) public/class-revenue-booster-for-woocommerce-public.php:1534
  70. Special Addons for Elementor icon Special Addons for ElementorFewer than 10 installs apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a href="%s" data-quantity="%s" class="%s" %s>' . $icon . '<span>%s</span></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ), $produ... ) func/woocommerce.php:163

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.