WordPress action hook
woocommerce_shop_loop
Defined by WooCommerce and fired by 40 plugins in total, running on 7.1M+ sites between them.
“Hook: woocommerce_shop_loop.”
How to use woocommerce_shop_loop
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_shop_loop', function() {
// Your code runs here.
}, 10, 1 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
40 plugins that fire woocommerce_shop_loop
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_shop_loop' )src/Blocks/BlockTypes/ClassicTemplate.php:366 -
ShopEngine90,000+ installs
do_action( 'woocommerce_shop_loop' )widgets/archive-products/screens/default.php:425 -
Genesis Connect for WooCommerce10,000+ installs
do_action( 'woocommerce_shop_loop' )lib/template-loader.php:281 -
ShopBuilder10,000+ installs
do_action( 'woocommerce_shop_loop' )templates/elementor/archive/archive-product.php:49 -
Spexo Addons for Elementor6,000+ installs
do_action( 'woocommerce_shop_loop' )inc/widgets/woo-product-grid-classic.php:4721 -
Themify Builder6,000+ installs
do_action( 'woocommerce_shop_loop' )themify/themify-template-tags.php:1483 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
do_action( 'woocommerce_shop_loop' )blocks/archive-products/screen.php:203 -
WC Vendors3,000+ installs
do_action( 'woocommerce_shop_loop' )templates/front/vendor-shop.php:65 -
The Pack Elementor addon2,000+ installs
do_action( 'woocommerce_shop_loop' )includes/widgets/woocommerce/woo-archive-product/view.php:15 -
MultiVendorX2,000+ installs
do_action( 'woocommerce_shop_loop' )classes/RestAPI/Rest.php:1259 -
Smart Related Products900+ installs
do_action( 'woocommerce_shop_loop' )include/elementor.php:218 -
ShopPress600+ installs
do_action( 'woocommerce_shop_loop' )Templates/ProductShop.php:183 -
StylePress for Elementor600+ installs
do_action( 'woocommerce_shop_loop' )extensions/woocommerce/templates/archive-product.php:80 -
StoreBuild400+ installs
do_action( 'woocommerce_shop_loop' )public/woocommerce/archive-product.php:60 -
Noah Shop Builder for WooCommerce400+ installs
do_action( 'woocommerce_shop_loop' )includes/Blocks/ArchiveProducts.php:196 -
Shopready100+ installs
do_action( 'woocommerce_shop_loop' )src/extension/templates/tpl/archive-product.php:66 -
PWF80+ installs
do_action( 'woocommerce_shop_loop' )includes/classes/woocommerce/class-pwf-filter-products.php:274 -
Super Product Filter for WooCommerce80+ installs
do_action( 'woocommerce_shop_loop' )public/inc/filter/render/ajax-product-list.php:12 -
Kemet Addons30+ installs
do_action( 'woocommerce_shop_loop' )addons/woocommerce/classes/class-kemet-addon-woocommerce-partials.php:205 -
Educat Elementor LMS Addon20+ installs
do_action( 'woocommerce_shop_loop' )includes/widgets/woocommerce/woo-archive-product/view.php:14 -
WPEnhanced Ajax Filter Blocks20+ installs
do_action( 'woocommerce_shop_loop' )lib/loop-templates/product-default.php:111 -
TABLEiT20+ installs
do_action( 'woocommerce_shop_loop' )functions.php:2179 -
Luma Product Fields10+ installs
do_action( 'woocommerce_shop_loop' )templates/taxonomy-product-archive.php:163 -
Yay Wholesale B2B for WooCommerce10+ installs
do_action( 'woocommerce_shop_loop' )includes/Engine/Compatibles/Barn2WoocommerceProductTable/templates/product-table-shop.php:69 -
Custom Builder for Elementor and WooCommerce10+ installs
do_action( 'woocommerce_shop_loop' )includes/widgets/shop/custom-woo-builder-products-loop.php:63 -
Onex Custom Woo Builder10+ installs
do_action( 'woocommerce_shop_loop' )includes/widgets/shop/custom-woo-builder-products-loop.php:63 -
Proshots For WooCommerce10+ installs
do_action( 'woocommerce_shop_loop' )templates/archive-product.php:87 -
Themofy Addons for Elementor10+ installs
do_action( 'woocommerce_shop_loop' )modules/woocommerce/includes/widgets/class-product-grid.php:886 -
Filterive for WooCommerce10+ installs
do_action( 'woocommerce_shop_loop' )includes/class-wcaf-ajax.php:140 -
SpeedSearchFewer than 10 installs
do_action( 'woocommerce_shop_loop' )src/integrations/themes/flatsome/products/products.php:136 -
Yay Bulk Order for WooCommerceFewer than 10 installs
do_action( 'woocommerce_shop_loop' )includes/Engines/Compatibles/YayWholesale/templates/product-table-shop.php:69 -
SiteEase Smart AJAX Product FilterFewer than 10 installs
do_action( 'woocommerce_shop_loop' )includes/ifqpf-class-model.php:77 -
BazarioFewer than 10 installs
do_action( 'woocommerce_shop_loop' )elements/widgets/archive-products/archive-products.php:2743 -
RND Product Filters with ajax for WooCommerceFewer than 10 installs
do_action( 'woocommerce_shop_loop' )ajax/rndapf.php:1074 -
Single Page ShoppingFewer than 10 installs
do_action( 'woocommerce_shop_loop' )includes/class-awcs-products-query.php:406 -
MOCFewer than 10 installs
do_action( 'woocommerce_shop_loop' )core/inc/segments-product.php:82 -
FilterSmithFewer than 10 installs
do_action( 'woocommerce_shop_loop' )templates/ajax-results.php:27 -
Polanger Dating for WordPressFewer than 10 installs
do_action( 'woocommerce_shop_loop' )templates/integrations/woocommerce/archive-product.php:96 -
Flx ModernizeFewer than 10 installs
do_action( 'woocommerce_shop_loop' )includes/WooCommerce/CatalogPayloadBuilder.php:167 -
MarfiloFewer than 10 installs
do_action( 'woocommerce_shop_loop' )includes/class-shop.php:1273
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.