WhoKnew Shield™ | Basic Shortcodes Reference

Skip to main content
Table of Contents
Print

Use one shortcode for every contact type: put the email, phone, or address between the tags and let WhoKnew Shield™ obfuscate it. No separate shortcodes, no link attribute—just wrap and go.

The One Shortcode

WhoKnew Shield uses a single shortcode with two valid names (both work the same):

  • [whoknew-shield] — hyphen
  • [whoknew_shield] — underscore

The contact information always goes between the opening and closing tags. There is no email="..." or link="true" attribute in the plugin; for email type the plugin automatically outputs a clickable mailto link.

Copy-Paste Examples

Email (mailto link by default)

[whoknew-shield type="email"]you@example.com[/whoknew-shield]

Phone (Pro: obfuscated · Free: plain text)

[whoknew-shield type="phone"](555) 123-4567[/whoknew-shield]

Address (Pro: obfuscated · Free: plain text)

[whoknew-shield type="address"]123 Main St, City[/whoknew-shield]

Types at a Glance

type=Use forOutput
emailEmail addressesObfuscated mailto link (no extra attribute needed)
phonePhone numbersPro: obfuscated · Free: plain text
addressPhysical addressesPro: obfuscated · Free: plain text

Optional Attributes

type — email, phone, or address. If you omit it, the plugin detects the type from the content: if it looks like an email (contains @ and a dot after it), it’s treated as email; in Pro, phone and address can be detected too. When in doubt, set type explicitly.

methods — Comma-separated list of obfuscation methods. Usually left blank so the plugin uses the methods from Protection Settings. Advanced use only; most users leave this empty.

Protection Must Be On

Shortcodes only obfuscate when Enable Contact Protection is turned on in Protection Settings. If protection is off, email shortcodes still output a normal mailto link (plain, not obfuscated); phone and address output plain text. Turn on the master toggle to get the full benefit.

Pro tip: You can use [whoknew-shield]content[/whoknew-shield] without type and let the plugin guess. For emails (e.g. hello@site.com) that works in both Free and Pro. For phone or address, specifying type="phone" or type="address" is clearer and ensures Pro protects them.

Where to Use Them

Use the shortcode anywhere WordPress processes shortcodes:

  • Posts and pages (block editor or classic)
  • Widgets that support shortcodes (e.g. Text, Custom HTML)
  • Theme templates (with do_shortcode() if needed)
  • Nested inside other shortcodes — the plugin supports nested shortcodes

Need Help?

For first-time setup: Your First 5 Minutes with WhoKnew Shield (Free) and Your First 5 Minutes with WhoKnew Shield (Pro). If you already use another plugin’s shortcodes (e.g. Email Address Encoder, Neotrendy), see Competitor Shortcode Compatibility—no need to change them. For obfuscation basics: Understanding Contact Obfuscation & Spam Prevention.

Share