這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Greeklish Slugs

外掛說明

Convert Greek characters to Latin (greeklish)
Using greeklish-permalinks with some extra functionality.

Features

  • Converts post, pages, taxonomy and category slugs to greeklish automatically
  • Hooks in the sanitize_title() function
  • You can use skp_greeklish_slugs($your_text) in your template files (good for dynamic css classes etc.)
  • Select to strip out 1 letter words
  • Select to strip out 2 letter words
  • Define stop words that will be striped out of the slugs
  • You can modify the translitaration array of regex via apply_filter('skp_greeklish_slugs_expressions', 'your_callback')

Filter the regex array

You can use apply_filter('skp_greeklish_slugs_expressions', 'your_callback') and modify the regex array used to transliterate

<?php
function your_callback( $expressions ) {
    // the $expressions parameter is the array with all expressions used

  // view the expressions
  var_damp( expressions )

  // Change/remove items
    $new_expressions = array(
    ...
    '/[μΜ][πΠ]/u' => 'mp',
    '/[νΝ][τΤ]/u' => 'nt',
    '/[τΤ][σΣ]/u' => 'ts'
    ...
    );

    // Add them
    $expressions = array_merge( $new_expressions, $expressions );

    return $expressions;
}
add_filter( 'skp_greeklish_slugs_expressions', 'your_callback' );
?>

Fork on github.

noveldigital.pro

螢幕擷圖

  • The options page

安裝方式

  1. Upload the files to the /wp-content/plugins/skp-greeklish-slugs/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

.

使用者評論

2020 年 6 月 30 日
I use this plugin across all my greek language wordpress sites. Solid, lightweight and most important bug free. A Big thank you to the author! Keep up the good work.
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Greeklish Slugs〉的開發相關工作。

參與者

〈Greeklish Slugs〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Greeklish Slugs〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.2

*Added uninstall file

1.1.1

*Code cleanup

1.1.0

*Added greek transaltions
*Added regex array filter

1.0.1

  • Added screenshots

1.0

  • Release