
內容簡介
總結:Didit Verify 可讓您在 WordPress 站點上要求身份驗證。在任何頁面上放置簡碼或在 WooCommerce 結帳時要求驗證。
1. 這個外掛讓您要求在 WordPress 站點上進行身份驗證,可以在任何頁面上放置簡碼或在 WooCommerce 結帳時要求。
2. 有兩種整合模式:
- UniLink:從 Didit 控制台貼上您想要的工作流程的 URL,不需要後端程式。
- API Session:[建議使用] 外掛為每位使用者創建一個唯一的工作範圍,您的 API 金鑰保存於伺服器端。
3. 顯示選項:
- Modal:在頁面頂部打開居中覆蓋層。
- Embedded:在放置簡碼的地方內嵌顯示驗證。
- 可配置的關閉按鈕、離開確認對話框,在完成時自動關閉。
- 在瀏覽器控制台中對 SDK 事件進行調試記錄。
4. 按鈕外觀:
- 可完全從管理面板進行配置:文本、顏色、邊框半徑、填充、字體大小。
- 在更改值時,設置中具有即時預覽,短碼屬性可以覆蓋每頁的按鈕文本。
5. 內容篩選:
- [didit_gate] 簡碼:僅對驗證過的使用者限制所有內容。
- [didit_status] 程式碼:在任何地方顯示使用者的驗證狀態。
- 驗證狀態保存到 WordPress 使用者元及中,可在管理使用者列表中查看。
6. WooCommerce 支援:
- 在結帳時需求進行驗證,提供 4 個位置選項。
- 自動將計費數據(姓名、電子郵件、電話、地址)發送到 Didit 進行預填和交叉驗證。
- 保存驗證工作範圍 ID 到訂單元及中進行稽核。
7. 開發人員可擴展性:
- PHP 操作掛鉤:didit_session_created、didit_verification_completed、didit_verification_cancelled。
- PHP 過濾器:didit_sdk_url 可更改 SDK CDN。
- DOM CustomEvent:didit:complete 前端 JavaScript。
8. 安全性(API 模式):
- API 金鑰僅存儲於伺服器端,永不發送到瀏覽器。
- 每個請求上都使用 CSRF nonce。
- 每小時每位使用者的速率限制:10個工作範圍。
- 每小時每個 IP 的速率限制:3個工作範圍(訪客)。
- 所有輸入均已列入白名單並進行過濾。
9. 第三方服務:
- 這個外掛連接到 Didit 身份驗證服務以處理使用者的驗證。
- 當建立驗證工作範圍時(API 模式),外掛會將數據發送到 Didit 的伺服器。
- 當顯示驗證介面時,一個 iframe 從 verify.didit.me 載入內容。
- 此外,這個外掛包含 Didit Web SDK(版本0.1.6)作為 assets/js/didit-sdk.umd.min.js。
10. 服務、SDK 來源代碼、SDK npm package、SDK 授權、使用條款和隱私政策的相關連結。
外掛標籤
開發者團隊
原文外掛簡介
Didit Verify lets you require identity verification on your WordPress site. Drop a shortcode on any page or require it at WooCommerce checkout.
Two integration modes:
UniLink — paste a URL from the workflow you want from Didit Console. No backend needed.
API Session — [RECOMMENDED] the plugin creates a unique session per user. Your API key stays server-side.
Display options:
Modal — opens a centered overlay on top of the page
Embedded — renders the verification inline where the shortcode is placed
Configurable close button, exit confirmation dialog, and auto-close on completion
Debug logging for SDK events in the browser console
Button appearance:
Fully configurable from the admin panel: text, colors, border radius, padding, font size
Live preview in Settings that updates as you change values
Shortcode attributes can override the button text per page
Content gating:
[didit_gate] shortcode — restrict any content to verified users only
[didit_status] shortcode — show the user’s verification status anywhere
Verification status saved to WordPress user meta and visible in the admin Users list
WooCommerce support:
Require verification at checkout with 4 position options
Automatically send billing data (name, email, phone, address) to Didit for pre-filling and cross-validation
Verification session ID saved to order meta for audit
Developer extensibility:
PHP action hooks: didit_session_created, didit_verification_completed, didit_verification_cancelled
PHP filter: didit_sdk_url to change the SDK CDN
DOM CustomEvent: didit:complete for frontend JavaScript
Security (API mode):
API key stored server-side only — never sent to the browser
CSRF nonce on every request
Per-user rate limit: 10 sessions/hour
Per-IP rate limit: 3 sessions/hour (guests)
All input whitelisted and sanitized
Third-Party Service
This plugin connects to the Didit identity verification service to process user verifications. When a verification session is created (API mode), the plugin sends data to Didit’s servers. When the verification UI is displayed, an iframe loads content from verify.didit.me.
This plugin bundles the Didit Web SDK (version 0.1.6) as assets/js/didit-sdk.umd.min.js. The full unminified source code is publicly available at the GitHub repository and npm package linked below.
Service: https://didit.me
SDK source code: https://github.com/didit-protocol/sdk-web
SDK npm package: https://www.npmjs.com/package/@didit-protocol/sdk-web
SDK license: MIT
Terms of Use: https://didit.me/en/terms/identity-verification/
Privacy Policy: https://didit.me/en/terms/privacy-policy/
The SDK can be rebuilt from source with npm install && npm run build (uses Rollup). See the GitHub repository for full build instructions.
No data is sent to Didit until the site administrator configures the plugin and a user initiates verification.
