跳到内容

APSearch — Arabic & Persian Search

v0.1.0

Faiz · 2026年8月31日 上架

Arabic and Persian searches return nothing when the spelling differs by one invisible character. This makes them match.

正在使用
10 以下
评分
暂无
累计下载
259
最近更新
2026年8月31日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Settings screen with index status.
Settings screen with index status.
Normalization rules.
Normalization rules.
The normalization test tool.
The normalization test tool.

WordPress search fails on Arabic-script languages, and it fails silently. A visitor searches کتابها and gets nothing, because the post says کتاب‌ها with a zero-width non-joiner. Someone types كتاب with an Arabic Kaf while the content uses the Persian ک. A product title carries diacritics; the query does not. Every one of these is a lost search, a lost reader, and in a shop, a lost sale.

This plugin fixes it by keeping a normalized copy of your searchable text and matching queries against that copy.

What it normalizes

  • Yeh family: ي, ى, ئ, ے, ې ی
  • Kaf family: ك, ڪ ک
  • Alef family: أ, إ, آ, ٱ ا
  • Heh family: ة, ۀ, ہ, ھ ه
  • Diacritics (harakat), Quranic marks and kashida/tatweel are ignored
  • Arabic-Indic (٠-٩) and Extended Arabic-Indic (۰-۹) digits become 0-9
  • Zero-width non-joiner (ZWNJ / نیم‌فاصله) and other invisible marks are ignored
  • Punctuation and repeated whitespace are ignored

Works with

  • The built-in search form and search results page
  • Any theme or block that runs a WP_Query search
  • WooCommerce product search (enable the product post type in settings)
  • WP-CLI: wp apsearch reindex, wp apsearch status, wp apsearch normalize "متن"

Privacy

The plugin sends nothing anywhere. It stores one normalized text field per post in your own database.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums