Translitaration of greek characters to latin for post permalinks with some extra options. (greeklish)
평가
4.9
최근 업데이트일
February 13, 2022
버전
1.1.4
활성화된 설치 항목
3K
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

무료Creator 요금제에서
활성화된 설치 항목
3K
테스트된 버전
5.9.10
이 플러그인은 다운로드 가능하며 워드프레스 독립 호스트 설치에 사용할 수 있습니다.