Shortcode
Product view counter shortcode#
[revnextwoopro_counter id="123"]
| Attribute | Required | Description |
|---|---|---|
id | No on single product pages, yes elsewhere | The WooCommerce product ID whose 30-day view count to show. Without it, the current product is used on single product pages. |
Output is the same <p class="revnextwoopro-visitor-counter"> line as the automatic counter. It prints nothing when the product has fewer than 5 views, when the Product view counter setting is off, or when the Pro license is inactive. The shortcode only displays the count; views are still counted only on real single product page loads.
Was this article helpful?
Tell us what was missing
