
內容簡介
總結:Spam Word Blocker是一個輕量級、符合WordPress政策的外掛程式,可防止管理員定義的不良字詞出現在任何文章、頁面或自訂文章類型中而導致發佈。
1. 這個外掛程式的特色有哪些?
- 即時彈出警示 - 顯示確切找到的被封鎖字詞
- 適用於所有文章類型 - 自動包含文章、頁面和自訂文章類型
- 輕量級 - 只在發布事件期間運行,無背景負載
- 伺服器端執行 - 無法被繞過
- 美觀的管理介面 - 乾淨的白色和綠色高級設計
- 符合WordPress政策 - 正確的逃逸、消毒和nonce
- 大小寫不敏感匹配 - 智能的字邊界偵測
2. 它是如何運作的?
- 管理員在外掛程式設置中添加被封鎖的字詞/片語(每行一個)
- 當用戶點擊發佈時,外掛程式掃描標題、內容和摘要
- 如果找到被封鎖的字詞:
- 即時彈出窗口顯示被封鎖的字詞
- 文章被自動保存為草稿
- 在重新加載頁面後,管理員提示會顯示
- 用戶移除被封鎖的字詞後重新發佈成功
3. 這個外掛程式非常適合哪些用途?
- 內容管理
- 預防意外垃圾郵件內容
- 多作者網站
- 客座文章管理
- 成人內容過濾
- 品牌保護
4. 開發者是誰?
- 由Harshit Kumar開發 - https://kumarharshit.in
外掛標籤
開發者團隊
原文外掛簡介
Spam Word Blocker is a lightweight, WordPress policy-compliant plugin that prevents publishing of any post, page, or custom post type if the content contains unwanted words defined by the admin.
Key Features
Instant Popup Alert – Shows exactly which blocked words were found
Works for ALL Post Types – Automatically covers posts, pages, and custom post types
Lightweight – Only runs during publish events, zero background load
Server-Side Enforcement – Cannot be bypassed
Beautiful Admin UI – Clean white and green premium design
WordPress Policy Compliant – Proper escaping, sanitizing, and nonces
Case-Insensitive Matching – Smart word-boundary detection
How It Works
Admin adds blocked words/phrases (one per line) in plugin settings
When user clicks Publish, plugin scans title, content, and excerpt
If blocked words found:
Instant popup shows which words are blocked
Post is saved as draft automatically
Admin notice displays after page reload
User removes blocked words and republishes successfully
Perfect For
Content moderation
Preventing accidental spam content
Multi-author sites
Guest post management
Adult content filtering
Brand protection
Credits
Developed by Harshit Kumar – https://kumarharshit.in
