BACK TO DIRECTORY

APSearch — Arabic & Persian Search

by Faiz

0.0
(0 ratings)

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.

Screenshots

Settings screen with index status.

Settings screen with index status.

Normalization rules.

Normalization rules.

The normalization test tool.

The normalization test tool.

Plugin Details

Active Installs
0
Total Downloads
94
Version
0.1.0
Requires WP
6.0
Requires PHP
7.4
Tested Up To
7.1
Added
2026-08-31
Last Updated
2026-08-31 1:31pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0