| 开发者 |
studioreforma
nravota12 kozzmen |
|---|---|
| 更新时间 | 2026年11月9日 16:08 |
| PHP版本: | 5.6 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ directory.You can change the transliteration rules by using the bulglish_permalinks_map filter.
For example, to transliterate "я" as "ia" instead of "ya", add the following code to your theme's functions.php file:
function my_bulglish_permalinks_map( $map ) {
$map['я'] = 'ia';
$map['Я'] = 'ia';
return $map;
}
add_filter( 'bulglish_permalinks_map', 'my_bulglish_permalinks_map' );
The filter receives the default transliteration map and must return
the modified map. Any rules you do not change retain their default
values.
Put the following in your wp-config.php file: define('CYR2LAT_FILENAMES',false);
preg_replace() regex passes with a single, faster strtr() lookupABSPATH direct-access safety guard