Skip to main content

WordPress plugin

Didit Verify for WordPress and WooCommerce

Add identity and age checks to any WordPress site or WooCommerce store. Use a shortcode on any page, or require a check at checkout. No JavaScript to write.

Setup

Set up in three steps

Install the plugin, add two values, then place a shortcode or turn on the checkout gate.

1

Install the plugin

Get Didit Verify from WordPress.org, or upload the release ZIP in your WordPress admin. Then choose Activate. Use version 0.3.4 or later.

PluginsAdd NewUpload Plugin
2

Choose a mode and add your keys

Pick API Session, then paste your Workflow ID and API key from the Didit Business Console. A workflow is the set of checks a session runs.

SettingsDidit Verify
API SessionProduction use. RecommendedUniLinkQuick testing. Needs only the link from your workflow
3

Add a shortcode or turn on the checkout gate

A shortcode is a short tag you type into a page. Put [didit_verify] on any page or post. For a store, tick Require identity verification at checkout.

SettingsDidit VerifyWooCommerce

Shortcodes

Four shortcodes

Type one into any page or post. No JavaScript.

[didit_verify]A verification button, styled with your Button Appearance settings.
[didit_verify mode="embedded"]The same check, shown inline on the page.
[didit_gate]Content only verified users can see. Others see a message and a verification button.
[didit_status]Shows Identity Verified or Not Verified for the logged-in user.

Change the label on one page with text and success_text. Content gates need a logged-in user and an approval confirmed in API Session mode.

Any page or post
[didit_verify]

[didit_verify mode="embedded"]

[didit_gate message="Please verify to continue."]
Secret content here.
[/didit_gate]

[didit_status]

WooCommerce

Verify at checkout

One checkbox makes a check part of the checkout.

  • Require a check at checkout. A customer needs an Approved decision, confirmed by the server, before placing an order. It works with classic and block checkout.
  • Choose the placement. Top of the checkout page, after billing details, after order notes, or before Place Order. The docs recommend before Place Order.
  • Choose the product scope. All products, only selected products, or all products except selected ones.
  • Or verify after purchase. The order stays on hold until the server confirms approval.
  • Prefill from billing data. Turn on Send Billing Data to send the name, email, phone and address to the check.

The Didit session ID is saved to the order.

SettingsDidit VerifyWooCommerceIllustration
Require identity verification at checkout

Placement

Top of checkout pageAfter billing detailsAfter order notesBefore "Place Order"Recommended

Product Scope

All productsOnly selectedAll except selected

Requirements

What you need

Three versions to check before you install.

WordPress 6.0 or higherWooCommerce is only needed for the checkout gate.
PHP 7.4 or higherThe plugin runs on your server.
Plugin 0.3.4 or laterIf the WordPress.org directory has an older version, install the release ZIP.

You also need a Didit Console account.

Questions

Questions about the WordPress plugin

Do I need to write code to use the WordPress plugin?
No. You set it up in Settings, Didit Verify, and add a shortcode to a page. PHP hooks and a JavaScript event are there if you want to build more.
Is my Didit API key safe in WordPress?
Yes. The plugin works as a backend proxy. The key is stored on your server and never reaches the browser.
What is the difference between UniLink and API Session mode?
UniLink previews the verification flow with only a link from your workflow. API Session uses your Workflow ID and API key. Content gates and WooCommerce verification need API Session mode.
Can I require verification only for some products?
Yes. Set the Product Scope to all products, only selected products, or all products except selected ones. A cart with one product that needs verification requires it.
Can guests verify at the WooCommerce checkout?
Yes. Guest checkout can create a session when verification is required, even if the general login requirement is on.
Which plugin version should I install?
Version 0.3.4 or later. If the WordPress.org directory has an older version, install the release ZIP from GitHub.
What does the Didit WordPress plugin require?
The Didit Verify plugin needs WordPress 6.0 or higher, PHP 7.4 or higher and a Didit Console account. For production, you also need an API key from API & Webhooks and a Workflow ID from Workflows. Install the release ZIP through Plugins, Add New, Upload Plugin, then activate it.
How do I show content only to verified users?
Wrap the content in the [didit_gate] shortcode. Unverified users see a message and a verification button, and you can change the message with the message attribute. Content gates need a logged-in user and an approval confirmed through API Session mode; browser callbacks and redirect query parameters do not grant access.
Which shortcodes does the plugin provide?
[didit_verify] adds a verification button, with text, success_text and mode attributes to override it per page. [didit_gate] hides content until the user is verified. [didit_status] shows Identity Verified or Not Verified for the logged-in user anywhere on your site.
Can customers verify after placing a WooCommerce order?
Yes. With After purchase, the order stays on hold until the server confirms approval. Guest customers can verify from the order page using its valid order key. Configure the webhook URL and secret shown in Settings, Didit Verify so signed status updates can release approved orders.
How does the plugin protect against abuse?
Every session request is protected by a CSRF (cross-site request forgery) nonce, an optional login requirement, rate limiting of 10 sessions per hour per user and 3 per hour per IP address for guests, and server-side input sanitization. The plugin confirms decisions with the Didit API or a verified webhook before approving a user or order.
How do I check verification status in PHP?
Call Didit_Verify::init()->is_user_verified() with the WordPress user ID. This helper includes the server-confirmation check. The docs say not to grant access from legacy user metadata or the browser's didit:complete event alone. The plugin also fires PHP actions such as didit_verification_completed for other plugins and themes.
What happens if an approved user is later declined?
From version 0.3.4, the plugin revokes access to protected content when an approved verification is later declined, expires or goes back to review. After upgrading from a version older than 0.3.2, users whose earlier approval was not confirmed by the server must verify again.
Where can I see who has verified?
In the WordPress admin, Users, All Users shows a Didit column with a check mark for verified users. WooCommerce order details show the Didit session ID, and the [didit_status] shortcode displays the status on any page. Each session is linked to the user through Vendor Data, by default the WordPress User ID.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Trusted by EU regulators

    After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Start

Get the plugin

Install Didit Verify, add your Workflow ID and API key, then place a shortcode or turn on the checkout gate.

Free sandbox. Credit applies to work-email sign-ups.