Wtyczka nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa. Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością z nowszymi wersjami WordPressa.

Greeklish Slugs

Opis

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

Zrzuty ekranu

  • The options page

Instalacja

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

Najczęściej zadawane pytania

.

Recenzje

2020-06-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.
Przeczytaj 7 recenzji

Kontrybutorzy i deweloperzy

„Greeklish Slugs” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.

Zaangażowani

Wtyczka „Greeklish Slugs” została przetłumaczona na 1 język. Podziękuj tłumaczom za ich wkład.

Przetłumacz wtyczkę “Greeklish Slugs” na swój język.

Interesuje cię rozwój wtyczki?

Przeglądaj kod, sprawdź repozytorium SVN lub czytaj dziennik rozwoju przez RSS.

Rejestr zmian

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