Skp Greeklish Slugs

plugin banner

Convert greek characters to latin (greeklish)
Clone of [greeklish-permalinks](https://github.com/dyrer/greeklish-permalinks) with some added personal

Author:Kostas Charalampidis (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:5.9
Plugin version:1.1.4
Added to WordPress repository:20-06-2014
Last updated:13-02-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:98
Rated by:7
Plugin URI:https://github.com/skapator/Skp-Greeklish-Slu...
Total downloads:16 876
Active installs:3 000+
plugin download
Click to start download

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


Screenshots
FAQ
ChangeLog