[Go to site: main page, start]

Shop operations · WordPress plugin

ShowIf

Show the right thing to the right visitor, without writing a condition.

  • $29 once
  • Full GPL source
  • Live demo, no signup
showif.webkodingtheme.comLive

No signup needed to look around.

Why it exists

Most stores end up wanting a rule: hide the wholesale prices from retail customers, show the loyalty banner only to members, run the weekend deal only at the weekend. Each one is a small piece of code, and after a year there are twenty of them scattered across the theme.

How ShowIf handles it

ShowIf turns those rules into settings. Pick what to show, pick who sees it, and the condition lives in the admin instead of in a child theme nobody remembers editing.

How it works

Three steps, then it runs

  1. 01
    Pick what to show

    Wrap it in the [showif] shortcode, give it a showif-- CSS class, or pick a saved rule in the ShowIf panel of the block editor or the ShowIf section of Elementor’s Advanced tab.

  2. 02
    Pick who sees it

    Role, login state or user ID; day, date or time; device; visits, scroll depth, referrer, current URL, a URL parameter or a cookie; country; an ACF field; the cart subtotal, a product in the cart, past purchases or lifetime spend.

  3. 03
    Save the rule

    It lives in the admin, where the next person can find it, and is reused by name.

Features

What ShowIf does

  • Conditions by user role, user ID and login state
  • WooCommerce: cart subtotal, a specific product in the cart, past purchases (by product or category) and lifetime spend
  • Schedule by date range, day of week or time of day, in the site’s timezone
  • Device, visit count, scroll depth, referrer, current URL, URL parameter and cookie
  • Country from your CDN’s header, or an opt-in ipapi.co lookup that is off by default
  • Advanced Custom Fields values on the current page
  • Shortcode and CSS classes in any theme or builder, a ShowIf panel in the block editor and a ShowIf section in Elementor; no Divi or WPBakery panel
  • Fails closed: a typo or a missing rule hides the content instead of showing it to everyone
  • Rules stay readable — no code in your theme

In the box

What you get, before you pay

Everything in the box, so there is nothing to discover after checkout.

Files

  • showif.zip, installed from the WordPress admin
  • Unminified source, no obfuscation

Licence

  • 1 WordPress site
  • Licence key sent by email after payment
  • GPL v2 or later

Updates and support

  • 1 year of updates and email support
  • After that the software keeps working
  • Renew only if you want new versions

Requirements

  • WordPress 5.8+
  • PHP 7.4+
  • WooCommerce (optional, for the shop conditions)
  • WooCommerce only for the shop conditions (cart subtotal, a product in the cart, purchases, spend); everything else works without it
  • Advanced Custom Fields only for the ACF field condition
  • For country conditions: a country header from your CDN or server, such as Cloudflare’s CF-IPCountry, or the opt-in ipapi.co lookup, which sends the visitor’s IP address to ipapi.co

ShowIf, $29 once.

A year of updates, 30-day refund, invoice from Paddle.

Questions

Do I need WooCommerce?

Only for the shop conditions — the cart subtotal, a specific product in the cart, what a logged-in customer has bought and how much they have spent. Role, login state, schedule, device and location all work on plain WordPress.

Does it work with block themes and page builders?

Yes. The shortcode and the CSS classes work anywhere WordPress runs — block themes, classic themes and every page builder. There is also a ShowIf panel in the block editor’s sidebar and a ShowIf section in Elementor’s Advanced tab (free or Pro). There is no dedicated Divi or WPBakery panel; use the shortcode or a class there.

Can I hide prices from visitors who are not logged in?

Where you can wrap the price in the shortcode — for example [showif loggedin="true"]…[/showif] around it in a page, template or builder — or give its element a ShowIf class, yes. ShowIf does not change WooCommerce’s own price output, so it does not hide prices across the whole shop by itself.

Will the hidden content still be in the page source?

Not with the shortcode, the block-editor panel or the Elementor section: the condition is decided on the server, and content the visitor does not match is never sent. A CSS class is different — that content is in the page and hidden with display:none, so use a class for layout, not for anything that must stay private.

How does it know the visitor’s country?

From a header your CDN or server already adds, such as Cloudflare’s CF-IPCountry or a GeoIP header. Without one, ShowIf can ask ipapi.co instead, which means sending the visitor’s IP address to that service; that lookup is off by default and is turned on under ShowIf → Settings → Visitor Country. Results are cached for 24 hours and the IP address is not stored. With neither, country conditions never match.

What happens to my rules if I deactivate the plugin?

The rules are stored, not applied — everything becomes visible again and nothing is deleted. Reactivating restores them.

Everything else is in the ShowIf documentation, and anything it does not answer goes to support@webkoding.com.

What ShowIf does not do

So you know before you buy, not after.

  • It does not create memberships, subscriptions or paywalls, and it has no membership-plugin condition. It reads what WordPress and WooCommerce already know — role, user ID, login state, and a customer’s purchases and spend — and decides what to show.
  • It does not protect files. Hidden content is not rendered, which covers page output, not a direct link to an upload.
  • Content hidden with a CSS class is still in the page and hidden with display:none. Use the shortcode, the block-editor panel or the Elementor section for anything that must not reach the browser.
  • It does not hook into WooCommerce’s price display. Prices, like anything else, are hidden only where you wrap them in the shortcode or give their element a ShowIf class.
  • The shop conditions need WooCommerce. The cart conditions are the cart subtotal, whether a specific product is in the cart, and an abandoned cart (items left for over an hour); there is no quantity condition.
  • Country conditions need a country header from your CDN or server, or the optional ipapi.co lookup, which sends the visitor’s IP address to ipapi.co and is off by default. With neither, they never match.
  • It fails closed, so a mistake hides content rather than showing it to everyone. A misspelt attribute, an empty value, a missing or inactive saved rule, or a condition whose plugin is not active (WooCommerce, ACF) never matches; administrators see a short note saying which attribute was ignored.
  • There is no Divi or WPBakery panel. On those builders, and on Bricks and Oxygen, use the shortcode or a showif-- CSS class.

ShowIf, $29 once.

A year of updates, 30-day refund, invoice from Paddle.

Not quite it? Three nearby

Not ready to buy?

We will write when there is a new plugin, or a release worth knowing about. A few emails a year, each about something we actually shipped — no offers, no sequence, and your address goes nowhere else.

One click to leave, from any of them. What we do with it.