woocommerce_product_loop()
Should the WooCommerce loop be displayed?
Description Description
This will return true if we have posts (products) or if we have subcats to display.
Return Return
(bool)
Source Source
File: includes/wc-template-functions.php
function woocommerce_product_loop() { return have_posts() || 'products' !== woocommerce_get_loop_display_mode(); }
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |